aboutsummaryrefslogtreecommitdiffstats
path: root/doc/miscellaneous.tex
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-11-29 23:55:29 +0100
committerMattias Andrée <maandree@kth.se>2016-11-29 23:55:29 +0100
commit781e9d05388539d989e3578ebc7f8a7cd038aeb0 (patch)
tree05939095a7ddc9c5da12b48df2c471bf238da2e3 /doc/miscellaneous.tex
parentmanual: fix truncated sentence (diff)
downloadlibzahl-781e9d05388539d989e3578ebc7f8a7cd038aeb0.tar.gz
libzahl-781e9d05388539d989e3578ebc7f8a7cd038aeb0.tar.bz2
libzahl-781e9d05388539d989e3578ebc7f8a7cd038aeb0.tar.xz
Fix errors in the manual (most of them found by Ivan Zuboff)
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'doc/miscellaneous.tex')
-rw-r--r--doc/miscellaneous.tex30
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/miscellaneous.tex b/doc/miscellaneous.tex
index 312d01c..8750595 100644
--- a/doc/miscellaneous.tex
+++ b/doc/miscellaneous.tex
@@ -65,7 +65,7 @@ a proper UCS minus sign is not supported.
Using what we have learned so far, and {\tt zstr}
which we will learn about in \secref{sec:String output},
we can construct a simple program that calculates the
-sum of a set of number.
+sum of a set of numbers.
\begin{alltt}
\textcolor{c}{#include <stdio.h>
@@ -153,10 +153,10 @@ there are cases where it is needed. In some case
\noindent
however its implementation is optimised to be
around three times as fast. It just swaps the members
-of the parameters, and thereby the values, There
+of the parameters, and thereby the values. There
is no rewriting of {\tt .chars} involved; thus
it runs in constant time. It also does not
-require that any argument has be initialised.
+require that any argument has been initialised.
After the call, {\tt a} will be initialised
if and only if {\tt b} was initialised, and
vice versa.
@@ -301,11 +301,11 @@ The return for {\tt zcmpmag} value is defined
\vspace{1em}
\noindent
-It is discouraged, stylistically, to compare
-against, $-1$ and $+1$, rather, you should
-always compare against $0$. Think of it as
-returning $a - b$, or $\lvert a \rvert - \lvert b \rvert$
-in the case of {\tt zcmpmag}.
+It is discouraged, stylistically, to compare against
+$-1$ and $+1$, rather, you should always compare
+against $0$. Think of it as returning $a - b$, or
+$\lvert a \rvert - \lvert b \rvert$ in the case of
+{\tt zcmpmag}.
\newpage
@@ -320,7 +320,7 @@ run the same version of libzahl, and run on compatible
microarchitectures, that is, the processors must have
endianness, and the intrinsic integer types in C must
have the same widths on all processors. When this is not
-the case, string conversion (see \secref{sec:Assignment}
+the case, string conversion can be used (see \secref{sec:Assignment}
and \secref{sec:String output}), but when it is the case
{\tt zsave} and {\tt zload} can be used. {\tt zsave} and
{\tt zload} are declared as
@@ -331,11 +331,11 @@ and \secref{sec:String output}), but when it is the case
\end{alltt}
\noindent
-{\tt zsave} stores a version- and microarchitecture-depend
+{\tt zsave} stores a version- and microarchitecture-dependent
binary representation of {\tt a} in {\tt buf}, and returns
the number of bytes written to {\tt buf}. If {\tt buf} is
-{\tt NULL}, the numbers that will be written is returned.
-{\tt zload} unmarshals an integers from {\tt buf}, created
-with {\tt zsave}, into {\tt a}, and returns the number of
-read bytes. {\tt zload} and will return the value returned
-by {\tt zsave}.
+{\tt NULL}, the numbers bytes that would have be written is
+returned. {\tt zload} unmarshals an integers from {\tt buf},
+created with {\tt zsave}, into {\tt a}, and returns the number
+of read bytes. {\tt zload} returns the value returned by
+{\tt zsave}.