diff --git a/README.md b/README.md index 9a78349..122be76 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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... } ```