; Minor improvement in documentation of generators

* doc/lispref/control.texi (Generators): Add a 'require' to the
example code.  (Bug#24539)
This commit is contained in:
Wilfred Hughes 2016-10-08 16:44:47 +03:00 committed by Eli Zaretskii
parent 197a6bcc20
commit ed399f26fa

View 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