summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-07-06 18:21:07 +0200
committerLudovic Courtès <ludo@gnu.org>2011-07-06 18:21:07 +0200
commit21b6df302fbc372a4b359f73a7441752cd6c1306 (patch)
tree84216b4229cebbdb3be14192bc3a93cc0a1c42cd
parent0adcd1bd939cb94691b15e585623b768041c058c (diff)
downloadguile-21b6df302fbc372a4b359f73a7441752cd6c1306.tar.gz
doc: Fix `merge-generics' example.
* doc/ref/goops.texi (Merging Generics): Change (my-module) example to use (oop goops) and use the right syntax for #:duplicates. Reported by David Pirotte <david@altosw.be>.
-rw-r--r--doc/ref/goops.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/ref/goops.texi b/doc/ref/goops.texi
index 362a6e371..10192eb3b 100644
--- a/doc/ref/goops.texi
+++ b/doc/ref/goops.texi
@@ -1,6 +1,6 @@
@c -*-texinfo-*-
@c This is part of the GNU Guile Reference Manual.
-@c Copyright (C) 2008, 2009
+@c Copyright (C) 2008, 2009, 2011
@c Free Software Foundation, Inc.
@c See the file guile.texi for copying conditions.
@@ -822,9 +822,10 @@ Here is an example:
#:export (x y z ...))
(define-module (my-module)
+ #:use-module (oop goops)
#:use-module (math 2D-vectors)
#:use-module (math 3D-vectors)
- #:duplicates merge-generics)
+ #:duplicates (merge-generics))
@end lisp
The generic function @code{x} in @code{(my-module)} will now incorporate