Commit cbaa6666 authored by Yasser Abdolmaleki's avatar Yasser Abdolmaleki Committed by Rob Pike
Browse files

net: document *OpError.Err must not be nil

The point of *net.OpError is to add details to an underlying lower
level error. It makes no sense to have an OpError without an Err and
a nil *OpError.Err will cause *OpError.Error() method to panic.

Fixes #33007

Change-Id: If4fb2501e02dad110a095b73e18c47312ffa6015
Reviewed-on: https://go-review.googlesource.com/c/go/+/187677


Reviewed-by: default avatarRob Pike <r@golang.org>
parent 98d27174
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment