Skip to content

Commit

Permalink
fix spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Nov 22, 2020
1 parent c4786ea commit 47a41c9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

```go
// myconfig.go

var myConfig struct {
Foo string
Bar int
Foo string
Bar int
}

func init() {
readConfig(&myConfig)
readConfig(&myConfig)
}

// test.go
Expand All @@ -18,7 +17,6 @@ import "github.com/tada-team/swap"
func TestWithSwap(t *testing.T) {
defer swap.Bool(&myConfig.Foo, "test value")()
defer swap.Int(&myConfig.Bar, 42)()

// test cases
// ...test cases...
}
```

0 comments on commit 47a41c9

Please sign in to comment.