summaryrefslogtreecommitdiff
path: root/doc/lispref/control.texi
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2016-10-08 16:44:47 +0300
committerEli Zaretskii <eliz@gnu.org>2016-10-08 16:44:47 +0300
commited399f26fa78fa69171e32b34af9a77debf57fad (patch)
treeb207cbd17f789b9b7431dc6eea3c9f613591fe6d /doc/lispref/control.texi
parent197a6bcc20cecba40b56ae478d42a33eb1e19d57 (diff)
downloademacs-ed399f26fa78fa69171e32b34af9a77debf57fad.tar.gz
; Minor improvement in documentation of generators
* doc/lispref/control.texi (Generators): Add a 'require' to the example code. (Bug#24539)
Diffstat (limited to 'doc/lispref/control.texi')
-rw-r--r--doc/lispref/control.texi1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 0cdb03548bf..0c0827909a3 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -805,6 +805,7 @@ The following piece of code demonstrates some important principles of
working with iterators.
@example
+(require 'generator)
(iter-defun my-iter (x)
(iter-yield (1+ (iter-yield (1+ x))))
;; Return normally