]> Cypherpunks repositories - gostls13.git/commit
os/signal: improve documentation for the Notify function
authorRadek Sohlich <sohlich@gmail.com>
Tue, 31 Oct 2017 16:59:29 +0000 (17:59 +0100)
committerIan Lance Taylor <iant@golang.org>
Wed, 1 Nov 2017 18:38:23 +0000 (18:38 +0000)
commit66764cc5b3837e19b951ca44df0bd7e2d613d9cd
tree59cfd835230c5e3e458e3ee813cbb05715fcedf9
parent7bd0b6100070d6a24458eded77228d37bfa1eb76
os/signal: improve documentation for the Notify function

It is easy to miss the documentation information that no arguments
in the Notify function means that the Notify will catch all possible signals.
So the example was added with explicit comment above the Notify usage.

Fixes #22257

Change-Id: Ia6a16dd4a419f7c77d89020ca5db85979b5b474e
Reviewed-on: https://go-review.googlesource.com/74730
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/signal/example_test.go