aboutsummaryrefslogtreecommitdiff
path: root/doc/go1.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/go1.html')
-rw-r--r--doc/go1.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/go1.html b/doc/go1.html
index 34e305b93c..939ee24df5 100644
--- a/doc/go1.html
+++ b/doc/go1.html
@@ -1647,14 +1647,14 @@ c := signal.Incoming()
is
</p>
<pre>
-c := make(chan os.Signal)
+c := make(chan os.Signal, 1)
signal.Notify(c) // ask for all signals
</pre>
<p>
but most code should list the specific signals it wants to handle instead:
</p>
<pre>
-c := make(chan os.Signal)
+c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGHUP, syscall.SIGQUIT)
</pre>