@cryptotaxi247 / kubo / commits / 2fdb997bc

chore: fix some typos (#10396)

Signed-off-by: looklose <shishuaiqun@yeah.net>

looklose committed Jun 3, 2024 at 23:17 UTC 2fdb997bc5f5ce0be1d7e3d2109f081ed5e3b863
2 files changed +3 -3
Rules.mk
+1 -1
@@ -123,7 +123,7 @@ help:
123 @echo ' build - Build binary at ./cmd/ipfs/ipfs'
124 @echo ' nofuse - Build binary with no fuse support'
125 @echo ' install - Build binary and install into $$GOBIN'
126 - @echo ' mod_tidy - Remove unused dependencis from go.mod files'
126 + @echo ' mod_tidy - Remove unused dependencies from go.mod files'
127 # @echo ' dist_install - TODO: c.f. ./cmd/ipfs/dist/README.md'
128 @echo ''
129 @echo 'CLEANING TARGETS:'
client/rpc/errors.go
+2 -2
@@ -68,11 +68,11 @@ func parseErrNotFound(msg string) (error, bool) {
68 // Assume CIDs break on:
69 // - Whitespaces: " \t\n\r\v\f"
70 // - Semicolon: ";" this is to parse ipld.ErrNotFound wrapped in multierr
71 -// - Double Quotes: "\"" this is for parsing %q and %#v formating.
71 +// - Double Quotes: "\"" this is for parsing %q and %#v formatting.
72 const cidBreakSet = " \t\n\r\v\f;\""
73
74 func parseIPLDErrNotFound(msg string) (error, bool) {
75 - // The patern we search for is:
75 + // The pattern we search for is:
76 const ipldErrNotFoundKey = "ipld: could not find " /*CID*/
77 // We try to parse the CID, if it's invalid we give up and return a simple text error.
78 // We also accept "node" in place of the CID because that means it's an Undefined CID.