Skip to content

Commit 8d761bc

Browse files
committed
spell check
1 parent c586de3 commit 8d761bc

File tree

10 files changed

+17394
-14697
lines changed

10 files changed

+17394
-14697
lines changed

doc/source/0_preface.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ The course Principles of Programming, and the notes on which this book is
184184
based, were first delivered in spring 2020, when university teaching was
185185
completely online during the COVID pandemic. I'd like to thank teaching fellow
186186
Dr Matthew Woolway who worked tirelessly with me on the module and who put
187-
together many of the tests on the exercies, and the graduate teaching
187+
together many of the tests on the exercises, and the graduate teaching
188188
assistants Miguel Boland, Sophia Vorderwuelbecke and Connor Ward whose
189189
professionalism in delivering the course in very complex circumstances was
190190
outstanding. Pulling out all the stops to deliver the written and video

doc/source/1_introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ references in this book are to that version.
123123
Within Python 3, there is a minor version release approximately every year.
124124
Once released, this receives security updates for 5 years. At the time of
125125
writing, Python 3.10 is the newest release version, and Python 3.6 is the
126-
oldest version that still recieves security fixes. The user-facing differences
126+
oldest version that still receives security fixes. The user-facing differences
127127
between minor Python versions are usually fairly minimal, so for the purposes
128128
of this book it doesn't matter which of the currently supported versions of
129129
Python you use.

doc/source/2_programs_in_files.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ IPython can now be run by simply typing:
7575
7676
(PoP_venv) $ ipython
7777
78-
This will result in output simiar to the following:
78+
This will result in output similar to the following:
7979

8080
.. code-block:: ipython3
8181

doc/source/4_style.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,8 @@ instead of:
846846
847847
.. _repetition:
848848

849-
Avoid repetitition
850-
..................
849+
Avoid repetition
850+
................
851851

852852
Programmers very frequently need to do *nearly* the same thing over and over.
853853
One obvious way to do this is to write code for the first case, then copy and

doc/source/5_abstract_data_types.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,8 @@ Here we have introduced in some detail a few relatively simple abstract data
724724
types that illustrate the distinction between the mathematical properties of a
725725
type and the concrete details of its implementation. There are many other
726726
abstract data types, some of which you will have already met, and we will
727-
encouter a few more in this course. For context, here are a few other examples.
727+
encounter a few more in this course. For context, here are a few other
728+
examples.
728729

729730
set
730731
A set is an unordered collection of objects with the property that objects

doc/source/6_exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ the exception matches the list of exceptions is executed. For example:
618618
In this case, the except block will match any exception which is raised in
619619
the corresponding try block. Using unconstrained except blocks like this is
620620
a somewhat dangerous strategy. Usually, the except block will be designed
621-
to deal with a particular type of exeptional circumstance. However, an
621+
to deal with a particular type of exceptional circumstance. However, an
622622
except block that catches any exception may well be triggered by a completely
623623
different exception, in which case it will just make the error more
624624
confusing by obscuring where the issue actually occurred.

doc/source/8_debugging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ course in a perfect world where we have full test suite coverage of all
612612
functionality, and the test suite is run on every commit, this situation will
613613
never occur. However the reality is that test coverage is never complete, and
614614
there will always be untested functionality in any non-trivial piece of
615-
software. Regressions are a particularly vexxing form of bug: there is little
615+
software. Regressions are a particularly vexing form of bug: there is little
616616
more frustrating to be coming up to a deadline and to discover that something
617617
that used to work no longer does.
618618

doc/source/9_trees_and_directed_acyclic_graphs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ operators but different for terminals.
645645
def __repr__(self):
646646
return type(self).__name__ + repr(self.operands)
647647
648-
This approch is valid because the string representation of a :class:`tuple`
648+
This approach is valid because the string representation of a :class:`tuple`
649649
is a pair of round brackets containing the string representation of each
650650
item in the tuple.
651651

@@ -1053,7 +1053,7 @@ algorithm.
10531053
if unvisited_children:
10541054
push e onto stack # Not ready to visit this node yet.
10551055
# Need to visit children before e.
1056-
push all unvisted_children onto stack
1056+
push all unvisited_children onto stack
10571057
else:
10581058
# Any children of e have been visited, so we can visit it.
10591059
visited[e] = visitor(e, *(visited(o) for o in e.operands))

doc/source/a2_git.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ formal course which the instructor has set up using GitHub classroom, or you
298298
are doing the exercises by yourself in private study. If you're using GitHub
299299
classroom as a part of a formal course where the instructor will be using
300300
GitHub classroom then follow the instructions in :numref:`accept_classroom`.
301-
If you're working on the exercises by yourself then follow the instructiosn in
301+
If you're working on the exercises by yourself then follow the instructions in
302302
:numref:`accept_template`.
303303

304304
.. container:: vimeo

0 commit comments

Comments
 (0)