summaryrefslogtreecommitdiff
path: root/doc/ref/tour.texi
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2010-07-16 12:44:44 +0200
committerAndy Wingo <wingo@pobox.com>2010-07-16 17:35:43 +0200
commit21476d8472ce2ecf5ee8836603239456651f8591 (patch)
tree99d16c729b2c6151fa6bfcdd9c53418cade845b2 /doc/ref/tour.texi
parent04ca20430bba139a5946711c5f94e99cdb44564e (diff)
downloadguile-21476d8472ce2ecf5ee8836603239456651f8591.tar.gz
update tour.texi examples
* doc/ref/tour.texi (Running Guile Interactively): Update examples for formatting.
Diffstat (limited to 'doc/ref/tour.texi')
-rw-r--r--doc/ref/tour.texi7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/ref/tour.texi b/doc/ref/tour.texi
index 41a8e8054..0c8b7e4a9 100644
--- a/doc/ref/tour.texi
+++ b/doc/ref/tour.texi
@@ -41,12 +41,11 @@ $ guile
scheme@@(guile-user)> (+ 1 2 3) ; add some numbers
$1 = 6
scheme@@(guile-user)> (define (factorial n) ; define a function
- (if (zero? n) 1 (* n (factorial (- n 1)))))
+ (if (zero? n) 1 (* n (factorial (- n 1)))))
scheme@@(guile-user)> (factorial 20)
$2 = 2432902008176640000
-scheme@@(guile-user)> (getpwnam "jimb") ; find my entry in /etc/passwd
-$3 = ("jimb" ".0krIpK2VqNbU" 4008 10 "Jim Blandy" "/u/jimb"
- "/usr/local/bin/bash")
+scheme@@(guile-user)> (getpwnam "root") ; look in /etc/passwd
+$3 = #("root" "x" 0 0 "root" "/root" "/bin/bash")
scheme@@(guile-user)> @kbd{C-d}
$
@end example