net/http: misleading documentation about the error returned by MaxBytesReader #53764
Labels
Documentation
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
In Go 1.19, the
MaxBytesReader
method returns an error of type*MaxBytesError
in case of aRead
beyond the limit. But the documentation suggests that the type isMaxBytesError
instead.You have to read the implementation code or deduce it from the
Error
method that uses a pointer receiver.The text was updated successfully, but these errors were encountered: