Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #3584

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/fixture/tmpnet/kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions utils/storage/storage_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion vms/platformvm/validators/fee/fee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion x/merkledb/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading