summaryrefslogtreecommitdiffstats
path: root/Doc/ref/ref2.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-07-24 15:36:43 (GMT)
committerGuido van Rossum <guido@python.org>1998-07-24 15:36:43 (GMT)
commit7c0240f11235bb24778ba4e9484ce683497b4ca2 (patch)
tree6f822bc72fb0c28be5c45b40e38966c20937b323 /Doc/ref/ref2.tex
parentc2aa9fbad9dc5befd22f579363880b9fce30a552 (diff)
downloadcpython-7c0240f11235bb24778ba4e9484ce683497b4ca2.zip
cpython-7c0240f11235bb24778ba4e9484ce683497b4ca2.tar.gz
cpython-7c0240f11235bb24778ba4e9484ce683497b4ca2.tar.bz2
e.g. -> e.g.,
Diffstat (limited to 'Doc/ref/ref2.tex')
-rw-r--r--Doc/ref/ref2.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/ref/ref2.tex b/Doc/ref/ref2.tex
index 2eef6ee..3b6adc8 100644
--- a/Doc/ref/ref2.tex
+++ b/Doc/ref/ref2.tex
@@ -38,7 +38,7 @@ A Python program is divided into a number of \emph{logical lines}.
The end of
a logical line is represented by the token NEWLINE. Statements cannot
cross logical line boundaries except where NEWLINE is allowed by the
-syntax (e.g. between statements in compound statements).
+syntax (e.g., between statements in compound statements).
A logical line is constructed from one or more \emph{physical lines}
by following the explicit or implicit \emph{line joining} rules.
\index{logical line}
@@ -455,7 +455,7 @@ definitions:
\begin{verbatim}
floatnumber: pointfloat | exponentfloat
pointfloat: [intpart] fraction | intpart "."
-exponentfloat: (intpart | pointfloat) exponent
+exponentfloat: (nonzerodigit digit* | pointfloat) exponent
intpart: nonzerodigit digit* | "0"
fraction: "." digit+
exponent: ("e"|"E") ["+"|"-"] digit+
@@ -487,10 +487,10 @@ An imaginary literals yields a complex number with a real part of
0.0. Complex numbers are represented as a pair of floating point
numbers and have the same restrictions on their range. To create a
complex number with a nonzero real part, add a floating point number
-to it, e.g. \code{(3+4j)}. Some examples of imaginary literals:
+to it, e.g., \code{(3+4j)}. Some examples of imaginary literals:
\begin{verbatim}
-3.14j 10.j 10 j .001j 1e100j 3.14e-10j
+3.14j 10.j 10j .001j 1e100j 3.14e-10j
\end{verbatim}