chore: fix function names in comment (#2163)

Signed-off-by: goodfirm <fanyishang@yeah.net>
This commit is contained in:
goodfirm 2024-04-11 00:59:42 +08:00 committed by GitHub
parent 2f4ff8447d
commit 9f93dc1842
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {