Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Roche authored Mar 8, 2019
1 parent 4d9ec17 commit ff6f7a9
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 @@ -47,10 +47,10 @@ err = p.Validate() // err: Name must match pattern '^[^\d\s]+( [^\d\s]+)*$'
p.Name = "Protocol Buffer"

err = p.Validate() // err: Home is required
p.Location = &Location{37.7, 999}
p.Home = &Location{37.7, 999}

err = p.Validate() // err: Home.Lng must be within [-180, 180]
p.Location.Lng = -122.4
p.Home.Lng = -122.4

err = p.Validate() // err: nil
```
Expand Down

0 comments on commit ff6f7a9

Please sign in to comment.