@cryptotaxi247 / kubo / commits / 07cbba7c4

Fix Typos

flowed committed Dec 25, 2019 at 03:12 UTC 07cbba7c40522abf7690529f3564fd38dd9ad859
11 files changed +16 -16
cmd/ipfs/daemon.go
+1 -1
@@ -402,7 +402,7 @@ func daemonFunc(req *cmds.Request, re cmds.ResponseEmitter, env cmds.Environment
402 return err
403 }
404
405 - // Add ipfs version info to prometheous metrics
405 + // Add ipfs version info to prometheus metrics
406 var ipfsInfoMetric = promauto.NewGaugeVec(prometheus.GaugeOpts{
407 Name: "ipfs_info",
408 Help: "IPFS version information.",
core/commands/mount_unix.go
+1 -1
@@ -35,7 +35,7 @@ You may have to create /ipfs and /ipns before using 'ipfs mount':
35 `,
36 LongDescription: `
37 Mount IPFS at a read-only mountpoint on the OS. The default, /ipfs and /ipns,
38 -are set in the configuration file, but can be overriden by the options.
38 +are set in the configuration file, but can be overridden by the options.
39 All IPFS objects will be accessible under this directory. Note that the
40 root will not be listable, as it is virtual. Access known paths directly.
41
core/commands/object/object.go
+2 -2
@@ -34,7 +34,7 @@ type Object struct {
34 Links []Link `json:"Links,omitempty"`
35 }
36
37 -var ErrDataEncoding = errors.New("unkown data field encoding")
37 +var ErrDataEncoding = errors.New("unknown data field encoding")
38
39 const (
40 headersOptionName = "headers"
@@ -197,7 +197,7 @@ This command outputs data in the following encodings:
197 * "xml"
198 (Specified by the "--encoding" or "--enc" flag)
199
200 -The encoding of the object's data field can be specifed by using the
200 +The encoding of the object's data field can be specified by using the
201 --data-encoding flag
202
203 Supported values are:
core/commands/pin.go
+1 -1
@@ -523,7 +523,7 @@ Efficiently pins a new object based on differences from an existing one and,
523 by default, removes the old pin.
524
525 This commands is useful when the new pin contains many similarities or is a
526 -derivate of an existing one, particuarly for large objects. This allows a more
526 +derivative of an existing one, particuarly for large objects. This allows a more
527 efficient DAG-traversal which fully skips already-pinned branches from the old
528 object. As a requirement, the old object needs to be an existing recursive
529 pin.
core/coreapi/object.go
+1 -1
@@ -338,7 +338,7 @@ func deserializeNode(nd *Node, dataFieldEncoding string) (*dag.ProtoNode, error)
338 }
339 dagnode.SetData(data)
340 default:
341 - return nil, fmt.Errorf("unkown data field encoding")
341 + return nil, fmt.Errorf("unknown data field encoding")
342 }
343
344 links := make([]*ipld.Link, len(nd.Links))
mk/util.mk
+2 -2
@@ -34,10 +34,10 @@ space+=
34 comma:=,
35 join-with=$(subst $(space),$1,$(strip $2))
36
37 -# debug target, prints varaible. Example: `make print-GOFLAGS`
37 +# debug target, prints variable. Example: `make print-GOFLAGS`
38 print-%:
39 @echo $*=$($*)
40
41 -# phony target that will mean that recipe is always exectued
41 +# phony target that will mean that recipe is always executed
42 ALWAYS:
43 .PHONY: ALWAYS
test/sharness/README.md
+1 -1
@@ -52,7 +52,7 @@ directory.
52 Please do not change anything in the "lib/sharness" directory.
53
54 If you really need some changes in sharness, please fork it from
55 -[its cannonical repo](https://github.com/mlafeldt/sharness/) and
55 +[its canonical repo](https://github.com/mlafeldt/sharness/) and
56 send pull requests there.
57
58 ## Writing Tests
test/sharness/t0040-add-and-cat.sh
+4 -4
@@ -193,7 +193,7 @@ test_add_cat_file() {
193 test_expect_code 1 ipfs add -Q --chunker rabin-12-512-1024 mountdir/hello.txt
194 '
195
196 - test_expect_success "ipfs add --chunker buzhash suceeds" '
196 + test_expect_success "ipfs add --chunker buzhash succeeds" '
197 ipfs add --chunker buzhash mountdir/hello.txt >actual
198 '
199
@@ -787,11 +787,11 @@ test_add_cat_5MB '--cid-version=1 --raw-leaves=false' "bafybeieyifrgpjn3yengthr7
787
788 # note: --hash=blake2b-256 implies --cid-version=1 which implies --raw-leaves=true
789 # the specified hash represents the leaf nodes stored as raw leaves and
790 -# encoded with the blake2b-256 hash funtion
790 +# encoded with the blake2b-256 hash function
791 test_add_cat_5MB '--hash=blake2b-256' "bafykbzacebnmjcl4sn37b3ehtibvf263oun2w6idghenrvlpehq5w5jqyvhjo"
792
793 # the specified hash represents the leaf nodes stored as protoful nodes and
794 -# encoded with the blake2b-256 hash funtion
794 +# encoded with the blake2b-256 hash function
795 test_add_cat_5MB '--hash=blake2b-256 --raw-leaves=false' "bafykbzaceaxiiykzgpbhnzlecffqm3zbuvhujyvxe5scltksyafagkyw4rjn2"
796
797 test_add_cat_expensive "" "QmU9SWAPPmNEKZB8umYMmjYvN7VyHqABNvdA6GUi4MMEz3"
@@ -802,7 +802,7 @@ test_add_cat_expensive "--cid-version=1" "bafybeidkj5ecbhrqmzrcee2rw7qwsx24z3364
802
803 # note: --hash=blake2b-256 implies --cid-version=1 which implies --raw-leaves=true
804 # the specified hash represents the leaf nodes stored as raw leaves and
805 -# encoded with the blake2b-256 hash funtion
805 +# encoded with the blake2b-256 hash function
806 test_add_cat_expensive '--hash=blake2b-256' "bafykbzaceb26fnq5hz5iopzamcb4yqykya5x6a4nvzdmcyuu4rj2akzs3z7r6"
807
808 test_add_named_pipe
test/sharness/t0175-reprovider.sh
+1 -1
@@ -16,7 +16,7 @@ init_strategy() {
16 PEERID_1=$(iptb attr get 1 id)
17 '
18
19 - test_expect_success 'use pinning startegy for reprovider' '
19 + test_expect_success 'use pinning strategy for reprovider' '
20 ipfsi 0 config Reprovider.Strategy '$1'
21 '
22
test/sharness/t0184-http-proxy-over-p2p.sh
+1 -1
@@ -169,7 +169,7 @@ test_expect_success 'start http server' '
169 start_http_server
170 '
171
172 -test_expect_success 'handle proxy http request propogates error response from remote' '
172 +test_expect_success 'handle proxy http request propagates error response from remote' '
173 serve_content "SORRY GUYS, I LOST IT" "404 Not Found" &&
174 curl_send_proxy_request_and_check_response 404 "SORRY GUYS, I LOST IT"
175 '
test/sharness/t0272-urlstore.sh
+1 -1
@@ -28,7 +28,7 @@ test_urlstore() {
28
29 test_launch_ipfs_daemon --offline
30
31 - test_expect_success "make sure files can be retrived via the gateway" '
31 + test_expect_success "make sure files can be retrieved via the gateway" '
32 curl http://127.0.0.1:$GWAY_PORT/ipfs/$HASH1a -o file1.actual &&
33 test_cmp file1 file1.actual &&
34 curl http://127.0.0.1:$GWAY_PORT/ipfs/$HASH2a -o file2.actual &&