Skip to content

Commit

Permalink
chore: fix function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: goodfirm <[email protected]>
  • Loading branch information
goodfirm committed Apr 10, 2024
1 parent 5d50f7c commit 9edacfd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/addblock/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type config struct {
TxIndex bool `long:"txindex" description:"Build a full hash-based transaction index which makes all transactions available via the getrawtransaction RPC"`
}

// filesExists reports whether the named file or directory exists.
// fileExists reports whether the named file or directory exists.
func fileExists(name string) bool {
if _, err := os.Stat(name); err != nil {
if os.IsNotExist(err) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/gencerts/gencerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func cleanAndExpandPath(path string) string {
return filepath.Clean(os.ExpandEnv(path))
}

// filesExists reports whether the named file or directory exists.
// fileExists reports whether the named file or directory exists.
func fileExists(name string) bool {
if _, err := os.Stat(name); err != nil {
if os.IsNotExist(err) {
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func parseCheckpoints(checkpointStrings []string) ([]chaincfg.Checkpoint, error)
return checkpoints, nil
}

// filesExists reports whether the named file or directory exists.
// fileExists reports whether the named file or directory exists.
func fileExists(name string) bool {
if _, err := os.Stat(name); err != nil {
if os.IsNotExist(err) {
Expand Down
2 changes: 1 addition & 1 deletion database/ffldb/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,7 @@ func (db *db) Close() error {
return closeErr
}

// filesExists reports whether the named file or directory exists.
// fileExists reports whether the named file or directory exists.
func fileExists(name string) bool {
if _, err := os.Stat(name); err != nil {
if os.IsNotExist(err) {
Expand Down

0 comments on commit 9edacfd

Please sign in to comment.