Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func Countdown(out io.Writer) {
}
```

Use a `for` loop counting backwards with `i--` and use `fmt.Fprintln` to print to `out` with our number followed by a newline character. Finally use `fmt.Fprint` to send "Go!" aftward.
Use a `for` loop counting backwards with `i--` and use `fmt.Fprintln` to print to `out` with our number followed by a newline character. Finally, use `fmt.Fprint` to send "Go!" afterward.

## Refactor

Expand Down Expand Up @@ -677,4 +677,4 @@ func countDownFrom(from int) iter.Seq[int] {
}
```

This is a simple iterator, which will yield numbers in reverse order, starting from, `from` - perfect for our usecase.
This is a simple iterator, which will yield numbers in reverse order, starting from, `from` - perfect for our usecase.