Skip to content

Commit 9155414

Browse files
smckellipsPythonCHB
authored andcommitted
Misc typos (#185)
* Text update * Text Update
1 parent 0e62a10 commit 9155414

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

source/exercises/html_renderer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you don't know html -- just look at the example and copy that. And you can re
3030

3131
The exercise is broken down into a number of steps -- each requiring a few more OO concepts in Python.
3232

33-
The goal of the code is render html. The goal of the *exercise* is to build up a simple object hierarchy with:
33+
The goal of the code is to render html. The goal of the *exercise* is to build up a simple object hierarchy with:
3434

3535
* classes
3636
* class attributes
@@ -219,7 +219,7 @@ Part B:
219219

220220
Now it gets fun!
221221

222-
Now that you have multipel types of elements, it's worth looking a bit at how html works. A given element can hold text, but it can *also* hold other elements. So we need to update our ``Element`` classes to support that.
222+
Now that you have multiple types of elements, it's worth looking a bit at how html works. A given element can hold text, but it can *also* hold other elements. So we need to update our ``Element`` classes to support that.
223223

224224
Extend the ``Element.render()`` method so that it can render other elements inside the tag in addition to strings. A recursion-like approach should do it. i.e. it can call the ``render()`` method of the elements it contains.
225225

source/exercises/html_renderer_tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ Now we are getting a little more interesting.
831831

832832
This is easy; you know how to do that, yes?
833833

834-
But the training wheels are off -- you are going to need to write your own tests now. So before you create the ``Head`` element class, write a test for it. You should be able to copy and paste one of the previous tests, and just change the name of the class and the tag value. Remember to give yo test a new name, or it will simply replace the previous test.
834+
But the training wheels are off -- you are going to need to write your own tests now. So before you create the ``Head`` element class, write a test for it. You should be able to copy and paste one of the previous tests, and just change the name of the class and the tag value. Remember to give your test a new name, or it will simply replace the previous test.
835835

836836
I like to run the tests as soon as I make a new one. If nothing else, I can make sure I have one more test.
837837

source/modules/Strings.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ Common Escape Sequences::
196196
\t ASCII Horizontal Tab (TAB)
197197
\ooo Character with octal value ooo
198198
\xhh Character with hex value hh
199-
\uxxxx Charactor with Unicode code point value xxxx
200-
\N{char-name} Charactor with Unicdoe name char_name
199+
\uxxxx Character with Unicode code point value xxxx
200+
\N{char-name} Character with Unicdoe name char_name
201201

202202
For example -- for tab-separated values:
203203

@@ -215,7 +215,7 @@ https://docs.python.org/3/library/stdtypes.html#string-methods
215215
Raw Strings
216216
------------
217217

218-
There are times when you want a literal backslash in your string: Windows file paths, regular expressions. Tomake this easy, Pyhton support "raw" strings -- string literals where the backslash does not have special meaning:
218+
There are times when you want a literal backslash in your string: Windows file paths, regular expressions. To make this easy, Python support "raw" strings -- string literals where the backslash does not have special meaning:
219219

220220
Add an ``r`` in front of the string literal:
221221

source/scripts/dict_as_switch.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Perhaps a little silly for only two options,
105105
but I hope you get the idea.
106106

107107
And if you establish a protocol for what those functions return,
108-
you can use the return value -- perhaps as simple as a True or FAlse to indicate success.
108+
you can use the return value -- perhaps as simple as a True or False to indicate success.
109109

110110
Or a sentinel value to indicate it's time to break out of a loop.
111111

0 commit comments

Comments
 (0)