From 09376c5c4b658a051f8ad7bb52529ea3a27a8d11 Mon Sep 17 00:00:00 2001 From: David Wood Date: Mon, 21 Oct 2024 14:58:54 +0800 Subject: [PATCH] chore: fix some function names in comment --- src/diskusage/diskusage.go | 2 +- src/diskusage/diskusage_windows.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/diskusage/diskusage.go b/src/diskusage/diskusage.go index c798a9e9d..dc3fe25b0 100644 --- a/src/diskusage/diskusage.go +++ b/src/diskusage/diskusage.go @@ -12,7 +12,7 @@ type DiskUsage struct { stat *unix.Statfs_t } -// NewDiskUsages returns an object holding the disk usage of volumePath +// NewDiskUsage returns an object holding the disk usage of volumePath // or nil in case of error (invalid path, etc) func NewDiskUsage(volumePath string) *DiskUsage { stat := unix.Statfs_t{} diff --git a/src/diskusage/diskusage_windows.go b/src/diskusage/diskusage_windows.go index a4b08657b..2146afec1 100644 --- a/src/diskusage/diskusage_windows.go +++ b/src/diskusage/diskusage_windows.go @@ -12,7 +12,7 @@ type DiskUsage struct { availBytes int64 } -// NewDiskUsages returns an object holding the disk usage of volumePath +// NewDiskUsage returns an object holding the disk usage of volumePath // or nil in case of error (invalid path, etc) func NewDiskUsage(volumePath string) *DiskUsage { h := windows.MustLoadDLL("kernel32.dll")