diff options
author | Ethan Stefan Day <esday@ethan-stefan.net> | 2016-08-07 23:38:57 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2016-08-07 23:40:16 +0200 |
commit | 96d3cb3fcf834f3e017ad69548c89bcf61f3a19c (patch) | |
tree | 654e5f7684e1afd6de3982a244e03ff7e230ec55 /doc/ref/api-data.texi | |
parent | 469970d4b35e973b1fae969a4781a06d6abf0ba4 (diff) | |
download | guile-96d3cb3fcf834f3e017ad69548c89bcf61f3a19c.tar.gz |
Documentation fixes
* doc/ref/api-compound.texi:
* doc/ref/api-control.texi:
* doc/ref/api-data.texi: Fix typos and clarify.
Diffstat (limited to 'doc/ref/api-data.texi')
-rw-r--r-- | doc/ref/api-data.texi | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index c87b01eca..34e1ff64d 100644 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -1712,7 +1712,7 @@ starts from 0 for the least significant bit. @deffn {Scheme Procedure} ash n count @deffnx {C Function} scm_ash (n, count) -Return @math{floor(n * 2^count)}. +Return @math{floor(n * 2^{count})}. @var{n} and @var{count} must be exact integers. With @var{n} viewed as an infinite-precision twos-complement @@ -5141,7 +5141,7 @@ mapping consistently: @lisp ;; 1=red, 2=green, 3=purple -(if (eq? (colour-of car) 1) +(if (eq? (colour-of vehicle) 1) ...) @end lisp @@ -5154,7 +5154,7 @@ defining constants: (define green 2) (define purple 3) -(if (eq? (colour-of car) red) +(if (eq? (colour-of vehicle) red) ...) @end lisp @@ -5163,7 +5163,7 @@ But the simplest and clearest approach is not to use numbers at all, but symbols whose names specify the colours that they refer to: @lisp -(if (eq? (colour-of car) 'red) +(if (eq? (colour-of vehicle) 'red) ...) @end lisp @@ -5185,15 +5185,15 @@ Then a car's combined property set could be naturally represented and manipulated as a list of symbols: @lisp -(properties-of car1) +(properties-of vehicle1) @result{} (red manual unleaded power-steering) -(if (memq 'power-steering (properties-of car1)) - (display "Unfit people can drive this car.\n") - (display "You'll need strong arms to drive this car!\n")) +(if (memq 'power-steering (properties-of vehicle1)) + (display "Unfit people can drive this vehicle.\n") + (display "You'll need strong arms to drive this vehicle!\n")) @print{} -Unfit people can drive this car. +Unfit people can drive this vehicle. @end lisp Remember, the fundamental property of symbols that we are relying on |