Skip to content

Commit ff90894

Browse files
authored
core/rawdb: convert some comments to godoc convention (#21384)
1 parent 9e04c5e commit ff90894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/rawdb/freezer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func (f *freezer) AppendAncient(number uint64, hash, header, body, receipts, td
221221
return nil
222222
}
223223

224-
// Truncate discards any recent data above the provided threshold number.
224+
// TruncateAncients discards any recent data above the provided threshold number.
225225
func (f *freezer) TruncateAncients(items uint64) error {
226226
if atomic.LoadUint64(&f.frozen) <= items {
227227
return nil
@@ -235,7 +235,7 @@ func (f *freezer) TruncateAncients(items uint64) error {
235235
return nil
236236
}
237237

238-
// sync flushes all data tables to disk.
238+
// Sync flushes all data tables to disk.
239239
func (f *freezer) Sync() error {
240240
var errs []error
241241
for _, table := range f.tables {

0 commit comments

Comments
 (0)