Skip to content

Commit

Permalink
Readme tabs -> space
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhymond committed Apr 18, 2017
1 parent ed29052 commit cb34d51
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ package main
import "github.com/rhymond/go-money"

func main() {
pound := money.New(100, "GBP")
twoPounds, err := pound.Add(pound)
pound := money.New(100, "GBP")
twoPounds, err := pound.Add(pound)
if err != nil {
log.Fatal(err)
}
parties, err := twoPounds.Split(3)
parties, err := twoPounds.Split(3)
if err != nil {
log.Fatal(err)
}
parties[0].Display() // £0.67
parties[1].Display() // £0.67
parties[2].Display() // £0.66
parties[0].Display() // £0.67
parties[1].Display() // £0.67
parties[2].Display() // £0.66
}

```
Expand Down

0 comments on commit cb34d51

Please sign in to comment.