Skip to content

Commit 53749bf

Browse files
vuittont60sukunrt
authored andcommitted
Fix typos in comments and a test failure message (#2600)
No functional change.
1 parent 1055b76 commit 53749bf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/flaky-tests.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ processes are vying for CPU time.
2828
sudo cgset -r cpu.cfs_quota_us=10000 cpulimit
2929
sudo cgset -r cpu.cfs_period_us=1000000 cpulimit
3030

31-
# Run a shell with in our limited environemnt
31+
# Run a shell with in our limited environment
3232
sudo cgexec -g cpu:cpulimit bash
3333

3434
# In the shell, run the test

examples/libp2p-host/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ defer h2.Close()
8484
fmt.Printf("Hello World, my second hosts ID is %s\n", h2.ID())
8585
```
8686

87-
And thats it, you have a libp2p host and you're ready to start doing some awesome p2p networking!
87+
And that's it, you have a libp2p host and you're ready to start doing some awesome p2p networking!
8888

8989
In future guides we will go over ways to use hosts, configure them differently (hint: there are a huge number of ways to set these up), and interesting ways to apply this technology to various applications you might want to build.
9090

p2p/host/peerstore/test/peerstore_suite.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func testGetStreamBeforePeerAdded(ps pstore.Peerstore) func(t *testing.T) {
144144
t.Fatal("channel shouldnt be closed yet")
145145
}
146146
if a == nil {
147-
t.Fatal("got a nil address, thats weird")
147+
t.Fatal("got a nil address, that's weird")
148148
}
149149
count++
150150
if received[a.String()] {
@@ -195,7 +195,7 @@ func testAddrStreamDuplicates(ps pstore.Peerstore) func(t *testing.T) {
195195
var count int
196196
for a := range ach {
197197
if a == nil {
198-
t.Fatal("got a nil address, thats weird")
198+
t.Fatal("got a nil address, that's weird")
199199
}
200200
count++
201201
if received[a.String()] {

0 commit comments

Comments
 (0)