Skip to content

Commit 1e6c41b

Browse files
authored
chore: make function comments match function names (#378)
Signed-off-by: drawdrop <[email protected]>
1 parent d6f714b commit 1e6c41b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

protocol/get_ledgers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type LedgerSeqRange struct {
1818
LastLedger uint32
1919
}
2020

21-
// isStartLedgerWithinBounds checks whether the request start ledger/cursor is within the max/min ledger
21+
// IsStartLedgerWithinBounds checks whether the request start ledger/cursor is within the max/min ledger
2222
// for the current RPC instance.
2323
func IsStartLedgerWithinBounds(startLedger uint32, ledgerRange LedgerSeqRange) bool {
2424
return startLedger >= ledgerRange.FirstLedger && startLedger <= ledgerRange.LastLedger

protocol/get_transactions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type GetTransactionsRequest struct {
2121
Format string `json:"xdrFormat,omitempty"`
2222
}
2323

24-
// isValid checks the validity of the request parameters.
24+
// IsValid checks the validity of the request parameters.
2525
func (req GetTransactionsRequest) IsValid(maxLimit uint, ledgerRange LedgerSeqRange) error {
2626
if req.Pagination != nil && req.Pagination.Cursor != "" {
2727
if req.StartLedger != 0 {

0 commit comments

Comments
 (0)