; 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:
parent
197a6bcc20
commit
ed399f26fa
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue