Skip to content

Commit

Permalink
fix typo: function -> func (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy authored and h2non committed Jun 11, 2019
1 parent 090e9d9 commit 308f12f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ disabling `gock` once you are done with your HTTP testing logic.
A Go idiomatic approach for doing this can be using it in a `defer` statement, such as:

```go
function TestGock (t *testing.T) {
func TestGock (t *testing.T) {
defer gock.Off()

// ... my test code goes here
Expand All @@ -107,7 +107,7 @@ As a good testing pattern, you should call `gock.RestoreClient(client)` after ru
You can also use a `defer` statement for doing it, as you do with `gock.Off()`, such as:

```go
function TestGock (t *testing.T) {
func TestGock (t *testing.T) {
defer gock.Off()
defer gock.RestoreClient(client)

Expand Down

0 comments on commit 308f12f

Please sign in to comment.