From 7019d3c31695e9547c2e388ef018d961e2abcb17 Mon Sep 17 00:00:00 2001 From: standstaff Date: Mon, 9 Dec 2024 20:22:33 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: standstaff --- tests/fixture/tmpnet/kube.go | 2 +- utils/storage/storage_common.go | 4 ++-- vms/platformvm/validators/fee/fee_test.go | 2 +- x/merkledb/trie.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/fixture/tmpnet/kube.go b/tests/fixture/tmpnet/kube.go index 244440ad6625..32325661475f 100644 --- a/tests/fixture/tmpnet/kube.go +++ b/tests/fixture/tmpnet/kube.go @@ -46,7 +46,7 @@ func DefaultPodFlags(networkName string, dataDir string) map[string]string { } } -// newNodeStatefulSet returns a statefulset for an avalanchego node. +// NewNodeStatefulSet returns a statefulset for an avalanchego node. func NewNodeStatefulSet( name string, imageName string, diff --git a/utils/storage/storage_common.go b/utils/storage/storage_common.go index 6fa5692cb86a..82dcfc85d676 100644 --- a/utils/storage/storage_common.go +++ b/utils/storage/storage_common.go @@ -10,7 +10,7 @@ import ( "path/filepath" ) -// fileExists checks if a file exists before we +// FileExists checks if a file exists before we // try using it to prevent further errors. func FileExists(filePath string) (bool, error) { info, err := os.Stat(filePath) @@ -41,7 +41,7 @@ func ReadFileWithName(parentDir string, fileNameNoExt string) ([]byte, error) { } } -// folderExists checks if a folder exists before we +// FolderExists checks if a folder exists before we // try using it to prevent further errors. func FolderExists(filePath string) (bool, error) { info, err := os.Stat(filePath) diff --git a/vms/platformvm/validators/fee/fee_test.go b/vms/platformvm/validators/fee/fee_test.go index f99be8682bb6..b6abd5fb400c 100644 --- a/vms/platformvm/validators/fee/fee_test.go +++ b/vms/platformvm/validators/fee/fee_test.go @@ -530,7 +530,7 @@ func FuzzStateSecondsRemaining(f *testing.F) { ) } -// unoptimizedCalculateCost is a naive implementation of CostOf that is used for +// unoptimizedCostOf is a naive implementation of CostOf that is used for // differential fuzzing. func (s State) unoptimizedCostOf(c Config, seconds uint64) uint64 { var ( diff --git a/x/merkledb/trie.go b/x/merkledb/trie.go index 26cd6a728983..96f44bf3e811 100644 --- a/x/merkledb/trie.go +++ b/x/merkledb/trie.go @@ -191,7 +191,7 @@ func getProof(t Trie, key []byte) (*Proof, error) { return proof, nil } -// GetRangeProof returns a range proof for (at least part of) the key range [start, end]. +// getRangeProof returns a range proof for (at least part of) the key range [start, end]. // The returned proof's [KeyValues] has at most [maxLength] values. // [maxLength] must be > 0. // Assumes [t] doesn't change while this function is running.