errors: documentation for errors.Unwrap mentions non existing interface Wrapper #32130
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Check documentation for errors package in standard library.
What did you expect to see?
Correct documentation for errors.Unwrap, similar to the Is and As functions.
What did you see instead?
The documentation for the Unwrap function mentions a non existing interface called Wrapper. This interface has was removed by revert in commit 3e2c522
Also it's rather unclear how one would go about actually wrap an error. There is the Unwrap function with a short comment (that mentions the non existing Wrapper interface), but nothing much else that provide more context. How are errors chained? Up to 3pp library support?
The text was updated successfully, but these errors were encountered: