Skip to content

Commit 5fdfe47

Browse files
authored
chore: make function comment match function name (#740)
Signed-off-by: welfuture <wellfuture@qq.com>
1 parent aa0d291 commit 5fdfe47

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

libwallet/assets/dcr/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
var log = slog.Disabled
1414

15-
// UseLoggers sets the subsystem logs to use the provided loggers.
15+
// UseLogger sets the subsystem logs to use the provided loggers.
1616
func UseLogger(logger slog.Logger) {
1717
log = logger
1818
loader.UseLogger(logger)

libwallet/assets/ltc/dex-wallet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ func confirms(txHeight, curHeight int32) int32 {
10451045
}
10461046
}
10471047

1048-
// accountInfo returns the account name of the wallet.
1048+
// accountName returns the account name of the wallet.
10491049
func (dw *DEXWallet) accountName() string {
10501050
accountName, err := dw.w.AccountName(GetScope(), uint32(dw.acctNum))
10511051
if err == nil {

libwallet/assets/wallet/wallet_shared.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func (wallet *Wallet) EnableSyncShuttingDown() {
368368
wallet.isSyncShuttingDown.Store(true)
369369
}
370370

371-
// EnableSyncShuttingDown marks the end of the sync shutdown process.
371+
// EndSyncShuttingDown marks the end of the sync shutdown process.
372372
func (wallet *Wallet) EndSyncShuttingDown() {
373373
wallet.isSyncShuttingDown.Store(false)
374374
}

0 commit comments

Comments
 (0)