Skip to content

Commit

Permalink
re-wording to hopefully make merit of examples clearer - fixes quii#176
Browse files Browse the repository at this point in the history
  • Loading branch information
quii committed Jun 26, 2019
1 parent 17d821c commit d19ed48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integers.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func Add(x, y int) int {

If you really want to go the extra mile you can make [examples](https://blog.golang.org/examples). You will find a lot of examples in the documentation of the standard library.

Often code examples go out of date with what the actual code does because they live outside of the real code and don't get checked.
Often code examples that can be found outside the codebase, such as a readme file often become out of date and incorrect compared to the actual code because they don't get checked.

Go examples are executed just like tests so you can be confident examples reflect what the code actually does.

Expand Down

0 comments on commit d19ed48

Please sign in to comment.