Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
Grammar: README
Browse files Browse the repository at this point in the history
* spelling
* order - UTC is a modifier of midnight, not the date
* count agreement
  • Loading branch information
jsoref authored May 10, 2020
1 parent 1c0be5e commit d259fcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ can use the realtime clock while tests can use the mock clock.
### Realtime Clock

Your application can maintain a `Clock` variable that will allow realtime and
mock clocks to be interchangable. For example, if you had an `Application` type:
mock clocks to be interchangeable. For example, if you had an `Application` type:

```go
import "github.com/benbjohnson/clock"
Expand Down Expand Up @@ -55,7 +55,7 @@ func TestApplication_DoSomething(t *testing.T) {

Now that you've initialized your application to use the mock clock, you can
adjust the time programmatically. The mock clock always starts from the Unix
epoch (midnight, Jan 1, 1970 UTC).
epoch (midnight UTC on Jan 1, 1970).


### Controlling time
Expand Down Expand Up @@ -94,7 +94,7 @@ go func() {
}()
runtime.Gosched()
// Move the clock forward 10 second.
// Move the clock forward 10 seconds.
mock.Add(10 * time.Second)
// This prints 10.
Expand Down

0 comments on commit d259fcd

Please sign in to comment.