quii / learn-go-with-tests

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

Wrong character for string format on Integers section #715

Closed userunknownn closed 1 year ago

userunknownn commented 1 year ago

In the section:

Write the test first

on the first line : You will notice that we're using %d as our format strings rather than %q. That's because we want it to print an integer rather than a string.


- You will notice that we're using %d as our format strings rather than %q. That's because we want it to print an integer rather than a string.
+ You will notice that we're using %d as our format strings rather than %s. That's because we want it to print an integer rather than a string.
userunknownn commented 1 year ago

Sorry, it was mentioned on the t.Errorf section, that this wraps the value on double quotes