]> git.eshelyaron.com Git - emacs.git/commitdiff
; Minor improvement in documentation of generators
authorWilfred Hughes <me@wilfred.me.uk>
Sat, 8 Oct 2016 13:44:47 +0000 (16:44 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 8 Oct 2016 13:44:47 +0000 (16:44 +0300)
* doc/lispref/control.texi (Generators): Add a 'require' to the
example code.  (Bug#24539)

doc/lispref/control.texi

index 0cdb03548bff296cb9ffcc84c9009fb88c45989c..0c0827909a32f40df13366651cec0366a5269f33 100644 (file)
@@ -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