Fix typos (#8548)
Dimitris Apostolou committed
Nov 17, 2021 at 22:16 UTC
0c2f9d5950c4245d89fcaf39dd1baa754587231b
15 files changed
+25
-25
assets/assets_test.go
+1
-1
@@ -45,7 +45,7 @@ func testOneFile(f string, t *testing.T) {
45
}
46
47
if !bytes.Equal(vcsData, embdData) {
48
- t.Errorf("asset %s: vcs and embedded data isnt equal", f)
48
+ t.Errorf("asset %s: vcs and embedded data isn't equal", f)
49
return
50
}
51
core/commands/dht_test.go
+2
-2
@@ -25,10 +25,10 @@ func TestKeyTranslation(t *testing.T) {
25
}
26
27
if pkk != pkname {
28
- t.Fatal("keys didnt match!")
28
+ t.Fatal("keys didn't match!")
29
}
30
31
if ipnsk != ipnsname {
32
- t.Fatal("keys didnt match!")
32
+ t.Fatal("keys didn't match!")
33
}
34
}
core/corehttp/hostname.go
+1
-1
@@ -295,7 +295,7 @@ func prepareKnownGateways(publicGateways map[string]*config.GatewaySpec) gateway
295
}
296
297
// isKnownHostname checks Gateway.PublicGateways and returns matching
298
-// GatewaySpec with gracefull fallback to version without port
298
+// GatewaySpec with graceful fallback to version without port
299
func isKnownHostname(hostname string, knownGateways gatewayHosts) (gw *config.GatewaySpec, ok bool) {
300
// Try hostname (host+optional port - value from Host header as-is)
301
if gw, ok := knownGateways.exact[hostname]; ok {
core/node/dns.go
+2
-2
@@ -28,7 +28,7 @@ func DNSResolver(cfg *config.Config) (*madns.Resolver, error) {
28
var opts []madns.Option
29
var err error
30
31
- domains := make(map[string]struct{}) // to track overriden default resolvers
31
+ domains := make(map[string]struct{}) // to track overridden default resolvers
32
rslvrs := make(map[string]madns.BasicResolver) // to reuse resolvers for the same URL
33
34
for domain, url := range cfg.DNS.Resolvers {
@@ -58,7 +58,7 @@ func DNSResolver(cfg *config.Config) (*madns.Resolver, error) {
58
}
59
}
60
61
- // fill in defaults if not overriden by the user
61
+ // fill in defaults if not overridden by the user
62
for domain, url := range defaultResolvers {
63
_, ok := domains[domain]
64
if ok {
docs/config.md
+1
-1
@@ -1589,7 +1589,7 @@ Example:
1589
1590
Be mindful that:
1591
- Currently only `https://` URLs for [DNS over HTTPS (DoH)](https://en.wikipedia.org/wiki/DNS_over_HTTPS) endpoints are supported as values.
1592
-- The default catch-all resolver is the cleartext one provided by your operating system. It can be overriden by adding a DoH entry for the DNS root indicated by `.` as illustrated above.
1592
+- The default catch-all resolver is the cleartext one provided by your operating system. It can be overridden by adding a DoH entry for the DNS root indicated by `.` as illustrated above.
1593
- Out-of-the-box support for selected decentralized TLDs relies on a [centralized service which is provided on best-effort basis](https://www.cloudflare.com/distributed-web-gateway-terms/). The implicit DoH resolvers are:
1594
```json
1595
{
docs/snap.md
+4
-4
@@ -1,6 +1,6 @@
1
# Publishing go-ipfs as a snap
2
3
-> Snap is the default package manager for ubuntu since the release of 20.04. This doc captures what we know about building go-ipfs as a snap packge and publishing it to the snapstore.
3
+> Snap is the default package manager for ubuntu since the release of 20.04. This doc captures what we know about building go-ipfs as a snap package and publishing it to the snapstore.
4
5
The go-ipfs snap is defined in [snap/snapcraft.yaml](https://github.com/ipfs/go-ipfs/blob/master/snap/snapcraft.yaml). For more detail on our snapcraft.yaml see: https://github.com/ipfs-shipyard/ipfs-snap
6
@@ -15,7 +15,7 @@ Linux user can install go-ipfs with:
15
$ snap install ipfs
16
```
17
18
-Apps installed via Snapcraft are auto-updating by default. Snapcraft uses 'Release Channels' to let the user pick their stability level, with channels for `stable`, `candidate`, `beta` and `edge`. Snap will install the lasest release from the `stable` channel by default. A user that wants to test out the bleeding edge can opt in by passing the `--edge` flag
18
+Apps installed via Snapcraft are auto-updating by default. Snapcraft uses 'Release Channels' to let the user pick their stability level, with channels for `stable`, `candidate`, `beta` and `edge`. Snap will install the latest release from the `stable` channel by default. A user that wants to test out the bleeding edge can opt in by passing the `--edge` flag
19
20
```
21
$ snap install --edge ipfs
@@ -182,10 +182,10 @@ The `ipfs` snapcraft.io listing can be edited by
182
- @lidel
183
- @olizilla
184
185
-You need a Canonical developer account, then ask an existing owner to add you. Accsess is managed here https://dashboard.snapcraft.io/snaps/ipfs/collaboration/
185
+You need a Canonical developer account, then ask an existing owner to add you. Access is managed here https://dashboard.snapcraft.io/snaps/ipfs/collaboration/
186
187
188
-The launchpad.net config is managed by [**IPFS Maintainers**](https://launchpad.net/~ipfs) team, and you can request to join that team with your Canonical developer acccount. The list of maintainers is here: https://launchpad.net/~ipfs/+members
188
+The launchpad.net config is managed by [**IPFS Maintainers**](https://launchpad.net/~ipfs) team, and you can request to join that team with your Canonical developer account. The list of maintainers is here: https://launchpad.net/~ipfs/+members
189
190
At the time of writing the launchpad maintainers are:
191
misc/systemd/ipfs-hardened.service
+2
-2
@@ -1,6 +1,6 @@
1
# This file will be overwritten on package upgrades, avoid customizations here.
2
#
3
-# To make persistant changes, create file in
3
+# To make persistent changes, create file in
4
# "/etc/systemd/system/ipfs.service.d/overwrite.conf" with
5
# `systemctl edit ipfs.service`. This file will be parsed after this
6
# file has been parsed.
@@ -13,7 +13,7 @@
13
# For more info about custom unit files see systemd.unit(5).
14
15
# This service file enables systemd-hardening features compatible with IPFS,
16
-# while breaking compability with the fuse-mount function. Use this one only
16
+# while breaking compatibility with the fuse-mount function. Use this one only
17
# if you don't need the fuse-mount functionality.
18
19
[Unit]
misc/systemd/ipfs.service
+1
-1
@@ -1,6 +1,6 @@
1
# This file will be overwritten on package upgrades, avoid customizations here.
2
#
3
-# To make persistant changes, create file in
3
+# To make persistent changes, create file in
4
# "/etc/systemd/system/ipfs.service.d/overwrite.conf" with
5
# `systemctl edit ipfs.service`. This file will be parsed after this
6
# file has been parsed.
plugin/plugins/peerlog/peerlog_test.go
+1
-1
@@ -34,7 +34,7 @@ func TestExtractEnabled(t *testing.T) {
34
expected: false,
35
},
36
{
37
- name: "returns the vlaue of the Enabled field",
37
+ name: "returns the value of the Enabled field",
38
config: map[string]interface{}{"Enabled": true},
39
expected: true,
40
},
repo/fsrepo/migrations/fetcher.go
+1
-1
@@ -9,7 +9,7 @@ import (
9
)
10
11
const (
12
- // Current dirstibution to fetch migrations from
12
+ // Current distribution to fetch migrations from
13
CurrentIpfsDist = "/ipfs/QmP7tLxzhLU1KauTRX3jkVkF93pCv4skcceyUYMhf4AKJR" // fs-repo-migrations v2.0.2
14
// Latest distribution path. Default for fetchers.
15
LatestIpfsDist = "/ipns/dist.ipfs.io"
test/sharness/t0101-iptb-name.sh
+1
-1
@@ -16,7 +16,7 @@ test_expect_success "set up an iptb cluster" '
16
17
startup_cluster $num_nodes
18
19
-test_expect_success "add an obect on one node" '
19
+test_expect_success "add an object on one node" '
20
echo "ipns is super fun" > file &&
21
HASH_FILE=$(ipfsi 1 add -q file)
22
'
test/sharness/t0181-private-network.sh
+1
-1
@@ -18,7 +18,7 @@ test_expect_success "daemon won't start with force pnet env but with no key" '
18
19
unset LIBP2P_FORCE_PNET
20
21
-test_expect_success "daemon output incudes info about the reason" '
21
+test_expect_success "daemon output includes info about the reason" '
22
grep "private network was not configured but is enforced by the environment" stdout ||
23
test_fsh cat stdout
24
'
test/sharness/t0250-files-api.sh
+5
-5
@@ -500,7 +500,7 @@ test_files_api() {
500
test_cmp dirhash afterdirhash
501
'
502
503
- test_expect_success "cannot write to nonexistant path $EXTRA" '
503
+ test_expect_success "cannot write to nonexistent path $EXTRA" '
504
test_expect_code 1 ipfs files write $ARGS $RAW_LEAVES /cats/bar/ < output
505
'
506
@@ -742,12 +742,12 @@ test_files_api() {
742
verify_dir_contents /
743
'
744
745
- test_expect_success "remove nonexistant path forcibly" '
746
- ipfs files rm --force /nonexistant
745
+ test_expect_success "remove nonexistent path forcibly" '
746
+ ipfs files rm --force /nonexistent
747
'
748
749
- test_expect_success "remove deeply nonexistant path forcibly" '
750
- ipfs files rm --force /deeply/nonexistant
749
+ test_expect_success "remove deeply nonexistent path forcibly" '
750
+ ipfs files rm --force /deeply/nonexistent
751
'
752
753
# This one should return code 1 but still remove the rest of the valid files.
test/sharness/t0270-filestore.sh
+1
-1
@@ -24,7 +24,7 @@ assert_repo_size_less_than() {
24
25
test_expect_success "check repo size" '
26
test "$(get_repo_size)" -lt "$expval" ||
27
- { echo should be bellow "$expval" && test_fsh get_repo_size; }
27
+ { echo should be below "$expval" && test_fsh get_repo_size; }
28
'
29
}
30
test/sharness/t0272-urlstore.sh
+1
-1
@@ -110,7 +110,7 @@ EOF
110
ipfs repo gc > /dev/null
111
'
112
113
- test_expect_success "gatway no longer has files" '
113
+ test_expect_success "gateway no longer has files" '
114
test_must_fail curl -f http://127.0.0.1:$GWAY_PORT/ipfs/$HASH1a -o file1.actual
115
test_must_fail curl -f http://127.0.0.1:$GWAY_PORT/ipfs/$HASH2a -o file2.actual
116
'