quii / learn-go-with-tests

Learn Go with test-driven development
MIT License
22.21k stars 2.81k forks source link

fix the incorrect order of explanation of the `.Error()` method #763

Closed dario-piotrowicz closed 6 months ago

dario-piotrowicz commented 6 months ago

The .Error() method is used in the pointers and errors section without an explanation, and is then explained in the maps section (which comes after the pointers and errors one).

The changes here are reordering this so that readers get the explanation in the pointers and errors section.