1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 03:30:27 +02:00

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>.
This commit is contained in:
Ludovic Courtès 2011-07-06 18:21:07 +02:00
parent 0adcd1bd93
commit 21b6df302f

View file

@ -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