]> Cypherpunks repositories - gostls13.git/commit
net: document *OpError.Err must not be nil
authorYasser Abdolmaleki <yasser@yasser.ca>
Fri, 26 Jul 2019 03:44:06 +0000 (20:44 -0700)
committerRob Pike <r@golang.org>
Sun, 19 Jan 2020 02:25:54 +0000 (02:25 +0000)
commitcbaa666682386fe5350bf87d7d70171704c90fe4
tree123b551fe378c4fed5f3a04c41324424a6fe9ce8
parent98d2717499575afe13d9f815d46fcd6e384efb0c
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: Rob Pike <r@golang.org>
src/net/net.go