testing: Logf's documentation is not precise #16423
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
go version
)?Logf's documentation says:
Consider this code:
Running the tet case with "go test -v -run TestLog" produces::
t.Logf("text")
andt.Logf("text\n")
produces the same result. So itcan be concluded that
Logf
appends a new line to a string withouta ending new line. I think that it is better to mention this behavior
in
Logf
's documentation.The text was updated successfully, but these errors were encountered: