mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
Fix typo in comment for func AddPadding
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
This commit is contained in:
parent
0011bba19b
commit
5e906cc09a
|
@ -298,7 +298,7 @@ func (fw *FileWriter) WriteAt(buf []byte, pos uint64) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// addPadding adds zero byte padding until the file size is a multiple size.
|
// AddPadding adds zero byte padding until the file size is a multiple size.
|
||||||
func (fw *FileWriter) AddPadding(size int) error {
|
func (fw *FileWriter) AddPadding(size int) error {
|
||||||
p := fw.pos % uint64(size)
|
p := fw.pos % uint64(size)
|
||||||
if p == 0 {
|
if p == 0 {
|
||||||
|
|
Loading…
Reference in a new issue