Skip to content

Commit c5b2082

Browse files
committed
typos
1 parent d820202 commit c5b2082

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/source/7_inheritance.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ minimal characterisation of a group will suffice.
192192
def __repr__(self):
193193
"""Return the canonical string representation of the element."""
194194
return f"{type(self).__name__}" \
195-
f"({repr(self.group), repr(self.value)})"
195+
f"({repr(self.group)}, {repr(self.value)})"
196196
197197
198198
class CyclicGroup:
@@ -285,7 +285,7 @@ integer between 0 and 5, an exception is raised.
285285
ValueError: Element value must be an integer in the range [0, 5)
286286
287287
:numref:`cyclic_group` illustrates :term:`composition`: on line 13
288-
:class:`~example_code.groups_basic.Element`, is associated with a group object.
288+
: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,
291291
however this would have immediately hit the issue that elements have exactly

doc/source/a2_git.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ second of those presently, but first let's learn about `git add`.
543543
.. note::
544544

545545
The default branch may be called something other than `main`. In
546-
particular, older repositories often have a default branch called `main`.
546+
particular, older repositories often have a default branch called `master`.
547547
It doesn't matter what the default branch is called.
548548

549549
Staging files for commit

0 commit comments

Comments
 (0)