Skip to content

Commit

Permalink
docs: fix some typos (#10377)
Browse files Browse the repository at this point in the history
  • Loading branch information
occupyhabit committed Mar 25, 2024
1 parent 9047fed commit 62eb143
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/rpc/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func parseIPLDErrNotFound(msg string) (error, bool) {

// This is a simple error type that just return msg as Error().
// But that also match ipld.ErrNotFound when called with Is(err).
// That is needed to keep compatiblity with code that use string.Contains(err.Error(), "blockstore: block not found")
// That is needed to keep compatibility with code that use string.Contains(err.Error(), "blockstore: block not found")
// and code using ipld.ErrNotFound.
type blockstoreNotFoundMatchingIPLDErrNotFound struct {
msg string
Expand Down
2 changes: 1 addition & 1 deletion test/cli/dag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Data struct {
// The Fixture file represents a dag where 2 nodes of size = 46B each, have a common child of 7B
// when traversing the DAG from the root's children (node1 and node2) we count (46 + 7)x2 bytes (counting redundant bytes) = 106
// since both nodes share a common child of 7 bytes we actually had to read (46)x2 + 7 = 99 bytes
// we should get a dedup ratio of 106/99 that results in approximatelly 1.0707071
// we should get a dedup ratio of 106/99 that results in approximately 1.0707071

func TestDag(t *testing.T) {
t.Parallel()
Expand Down
2 changes: 1 addition & 1 deletion test/sharness/t0119-prometheus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test_expect_success "make sure metrics haven't changed" '
# Check what was added by enabling ResourceMgr.Enabled
#
# NOTE: we won't see all the dynamic ones, but that is ok: the point of the
# test here is to detect regression when rcmgr metrics dissapear due to
# test here is to detect regression when rcmgr metrics disappear due to
# refactor/human error.

test_expect_success "enable ResourceMgr in the config" '
Expand Down

0 comments on commit 62eb143

Please sign in to comment.