Skip to content

Commit 62a02c4

Browse files
committed
Proof reading thanks to Aaron Pereira.
1 parent e21dfeb commit 62a02c4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

doc/source/4_style.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ Indentation
465465
b. With the opening bracket as the last item on the first
466466
line. Subsequent lines are indented more than the first line but
467467
the same as each other. The closing bracket comes on a new line,
468-
and is either indented to the same level as the first line.
468+
and is indented to the same level as the first line.
469469

470470
.. container:: goodcode
471471

doc/source/5_abstract_data_types.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,13 @@ of big :math:`O`:
257257

258258
.. proof:definition:: :math:`O`
259259
260-
Let `f`, `g`, be real-valued functions. Then:
260+
Let :math:`f`, :math:`g`, be real-valued functions. Then:
261261

262262
.. math::
263263
264264
f(n) = O(g(n)) \textrm{ as } n\rightarrow \infty
265265
266-
if there exists :math:`M>0` and `N>0` such that:
266+
if there exists :math:`M>0` and :math:`N>0` such that:
267267

268268
.. math::
269269

doc/source/7_inheritance.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ which implements the group operation. Element objects will then :term:`delegate
152152

153153
Finally, we will want an :term:`infix operator` representing the group
154154
operation. Group theorists often use a dot, but we need to choose one of the
155-
infix operators that Python supports. We'll chose `*`, which is possibly the
155+
infix operators that Python supports. We'll choose `*`, which is possibly the
156156
closest match among Python's operators. One could easily envisage a more
157157
complete implementation of a group, with support for group properties such as
158158
generators and element features such as inverses. Our objective here is to
@@ -284,7 +284,7 @@ integer between 0 and 5, an exception is raised.
284284
285285
ValueError: Element value must be an integer in the range [0, 5)
286286
287-
:numref:`cyclic_group` illustrates :term:`composition`: on line 4
287+
:numref:`cyclic_group` illustrates :term:`composition`: on line 13
288288
:class:`~example_code.groups_basic.Element`, is associated with a group object.
289289
This is a classic *has a* relationship: an element has a group. We might have
290290
attempted to construct this the other way around with classes having elements,
@@ -296,8 +296,8 @@ defined.
296296
This code also demonstrates :term:`delegation`. In order to avoid having to
297297
define different element classes for different groups, the element class does
298298
not in substance implement either value validation, or the group operation.
299-
Instead, at line 3, validation is delegated to the group by calling
300-
:meth:`group._validate` and at line 10 the implementation of the group
299+
Instead, at line 12, validation is delegated to the group by calling
300+
:meth:`group._validate` and at line 19 the implementation of the group
301301
operation is delegated to the group by calling :meth:`self.group.operation`.
302302

303303
General linear groups
@@ -357,7 +357,7 @@ follows:
357357
358358
def __repr__(self):
359359
"""Return the canonical string representation of the group."""
360-
return f"{type(sxelf).__name__}({repr(self.degree)})"
360+
return f"{type(self).__name__}({repr(self.degree)})"
361361
362362
We won't illustrate the operation of this class, though the reader is welcome to
363363
:keyword:`import` the :mod:`example_code.groups_basic` module and experiment.

0 commit comments

Comments
 (0)