docs: fix some typos (#10377)

This commit is contained in:
occupyhabit 2024-03-25 16:59:47 +08:00 committed by GitHub
parent 9047fed8d5
commit 62eb143915
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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()

View File

@ -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" '