Skip to content

Commit 43d6aef

Browse files
authored
Fix Typos in Context (#822)
* Remove incorrect sentence. * Fix typo referencing incorrect identifier
1 parent 51affc7 commit 43d6aef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

context.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ type Store interface {
7171
}
7272
```
7373

74-
We will need to adjust our spy so it takes some time to return `data` and a way of knowing it has been told to cancel. We'll also rename it to `SpyStore` as we are now observing the way it is called. It'll have to add `Cancel` as a method to implement the `Store` interface.
74+
We will need to adjust our spy so it takes some time to return `data` and a way of knowing it has been told to cancel. It'll have to add `Cancel` as a method to implement the `Store` interface.
7575

7676
```go
7777
type SpyStore struct {
@@ -144,7 +144,7 @@ func Server(store Store) http.HandlerFunc {
144144
}
145145
```
146146

147-
This makes this test pass but it doesn't feel good does it! We surely shouldn't be cancelling `Store` before we fetch on _every request_.
147+
This makes this test pass but it doesn't feel good does it! We surely shouldn't be cancelling `Cancel()` before we fetch on _every request_.
148148

149149
By being disciplined it highlighted a flaw in our tests, this is a good thing!
150150

0 commit comments

Comments
 (0)