Skip to content

Commit dfc9ad0

Browse files
committed
Text Update
1 parent d677cf0 commit dfc9ad0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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

0 commit comments

Comments
 (0)