From 47fad69eea2cb685933e238ddcd75011e2c7d109 Mon Sep 17 00:00:00 2001 From: welfuture Date: Sat, 15 Mar 2025 15:49:08 +0800 Subject: [PATCH] chore: make function comment match function name Signed-off-by: welfuture --- support/time/main.go | 2 +- txnbuild/transaction.go | 2 +- xdr/preconditions.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/support/time/main.go b/support/time/main.go index d88467c17b..f93b4ef471 100644 --- a/support/time/main.go +++ b/support/time/main.go @@ -49,7 +49,7 @@ func (t Millis) RoundUp(d int64) Millis { return t } -// RoundUp returns a new ToInt64 instance with a down to d millis +// RoundDown returns a new ToInt64 instance with a down to d millis func (t Millis) RoundDown(d int64) Millis { //round down to the nearest d return Millis(int64(int64(t)/d) * d) diff --git a/txnbuild/transaction.go b/txnbuild/transaction.go index 0cf284fe02..da041e25ef 100644 --- a/txnbuild/transaction.go +++ b/txnbuild/transaction.go @@ -1429,7 +1429,7 @@ func verifyTxSignature(tx *Transaction, network string, signer string) error { return err } -// verifyTxSignature checks if a transaction has been signed by one or more of +// verifyTxSignatures checks if a transaction has been signed by one or more of // the signers, returning a list of signers that were found to have signed the // transaction. func verifyTxSignatures(tx *Transaction, network string, signers ...string) ([]string, error) { diff --git a/xdr/preconditions.go b/xdr/preconditions.go index c73402d2d7..18143fa48a 100644 --- a/xdr/preconditions.go +++ b/xdr/preconditions.go @@ -1,6 +1,6 @@ package xdr -// NewPreconditionsWithTimebounds constructs the simplest possible +// NewPreconditionsWithTimeBounds constructs the simplest possible // `Preconditions` instance given the (possibly empty) timebounds. func NewPreconditionsWithTimeBounds(timebounds *TimeBounds) Preconditions { cond := Preconditions{Type: PreconditionTypePrecondNone}