golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.72k stars 17.62k forks source link

x/pkgsite: Super small typo in documentation of ShouldNotBeBlank #50388

Closed kamyarghiam closed 2 years ago

kamyarghiam commented 2 years ago

What is the URL of the page with the issue?

https://pkg.go.dev/github.com/smartystreets/assertions#section-readme

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36

Screenshot

Screen Shot 2021-12-29 at 3 44 51 PM

What did you do?

What did you expect to see?

There is a typo with the definition of "ShouldNotBeBlank," I believe. The definition says ShouldNotBeBlank receives exactly 1 string parameter and ensures that it is equal to "". It should say that it ensures it is not equal to "".

What did you see instead?

ShouldNotBeBlank receives exactly 1 string parameter and ensures that it is not equal to "".

seankhliao commented 2 years ago

this should be reported to github.com/smartystreets/assertions