diff --git a/doc/go1.7.html b/doc/go1.7.html index 5f6b6a6934..8a76b369bc 100644 --- a/doc/go1.7.html +++ b/doc/go1.7.html @@ -288,6 +288,18 @@ To avoid confusion with the new -tests check, the old, unadvertised -test option has been removed; it was equivalent to -all -shadow.

+

+The vet command also has a new check, +-lostcancel, which detects failure to call the +cancellation function returned by the WithCancel, +WithTimeout, and WithDeadline functions in +Go 1.7's new context package (see below). +Failure to call the function prevents the new Context +from being reclaimed until its parent is cancelled. +(The background context is never cancelled.) +

+

Go tool dist