Skip to content

Commit

Permalink
chore: fix some function names in comment (#2229)
Browse files Browse the repository at this point in the history
Signed-off-by: standstaff <[email protected]>
  • Loading branch information
standstaff authored Dec 9, 2024
1 parent 5e1da04 commit ccfdcde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion primitives/net/http/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type TimeoutError interface {
Timeout() bool
}

// isTimeout checks if the given error is a timeout error.
// IsTimeoutError checks if the given error is a timeout error.
// It asserts the error to the httpTimeoutError interface and checks its Timeout
// status.
// Returns true if the error is a timeout error, false otherwise.
Expand Down
2 changes: 1 addition & 1 deletion storage/block/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (kv *KVStore[BeaconBlockT]) Set(blk BeaconBlockT) error {
return nil
}

// GetSlotByRoot retrieves the slot by a given block root from the store.
// GetSlotByBlockRoot retrieves the slot by a given block root from the store.
func (kv *KVStore[BeaconBlockT]) GetSlotByBlockRoot(
blockRoot common.Root,
) (math.Slot, error) {
Expand Down

0 comments on commit ccfdcde

Please sign in to comment.