Skip to content

Commit 2fdb997

Browse files
authoredJun 3, 2024··
chore: fix some typos (#10396)
Signed-off-by: looklose <shishuaiqun@yeah.net>
1 parent 97e5e6b commit 2fdb997

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎Rules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ help:
123123
@echo ' build - Build binary at ./cmd/ipfs/ipfs'
124124
@echo ' nofuse - Build binary with no fuse support'
125125
@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'
127127
# @echo ' dist_install - TODO: c.f. ./cmd/ipfs/dist/README.md'
128128
@echo ''
129129
@echo 'CLEANING TARGETS:'

‎client/rpc/errors.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ func parseErrNotFound(msg string) (error, bool) {
6868
// Assume CIDs break on:
6969
// - Whitespaces: " \t\n\r\v\f"
7070
// - 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.
7272
const cidBreakSet = " \t\n\r\v\f;\""
7373

7474
func parseIPLDErrNotFound(msg string) (error, bool) {
75-
// The patern we search for is:
75+
// The pattern we search for is:
7676
const ipldErrNotFoundKey = "ipld: could not find " /*CID*/
7777
// We try to parse the CID, if it's invalid we give up and return a simple text error.
7878
// We also accept "node" in place of the CID because that means it's an Undefined CID.

0 commit comments

Comments
 (0)
Please sign in to comment.