Skip to content

Commit 5431deb

Browse files
committed
Fix typo in Observer.
1 parent fbf228e commit 5431deb

File tree

6 files changed

+56
-58
lines changed

6 files changed

+56
-58
lines changed

book/observer.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ the program, don't use the Observer pattern to express that linkage. Prefer
615615
something more explicit.
616616

617617
When you're hacking on some big program, you tend to have lumps of it that you
618-
work on all together. We've lots of terminology for this like "separation of
618+
work on all together. We have lots of terminology for this like "separation of
619619
concerns" and "coherence and cohesion" and "modularity", but it boils down to
620620
"this stuff goes together and doesn't go with this other stuff".
621621

html/double-buffer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ <h3><a href="#artificial-unintelligence" name="artificial-unintelligence">Artifi
398398
</aside>
399399

400400
<p>Actors can also interact with each other, if by &#8220;interacting&#8221;, we mean &#8220;they can
401-
slap each other around.&#8221; When updating, the actor can call <code>slap()</code> on another
401+
slap each other around&#8221;. When updating, the actor can call <code>slap()</code> on another
402402
actor to slap it and call <code>wasSlapped()</code> to determine if it has been slapped.</p>
403403
<p>The actors need a stage where they can interact, so let&#8217;s build that:</p>
404404
<div class="codehilite"><pre><span class="k">class</span> <span class="nc">Stage</span>

html/introduction.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h1 class="book"><a href="/">Game Programming Patterns</a></h1>
5050
<p>At the back of the stack of pages was a real monster: a program that took up
5151
several dense pages of code. It took a while before we worked up the courage
5252
to even try it, but it was irresistible&#8202;&mdash;&#8202;the title above the listing was
53-
&#8220;Tunnels and Trolls.&#8221; We had no idea what it did, but it sounded like a game,
53+
&#8220;Tunnels and Trolls&#8221;. We had no idea what it did, but it sounded like a game,
5454
and what could be cooler than a computer game that you programmed yourself?</p>
5555
<p>We never did get it running, and after a year, we moved out of that classroom.
5656
(Much later when I actually knew a bit of BASIC, I realized that it was just a
@@ -70,7 +70,7 @@ <h1 class="book"><a href="/">Game Programming Patterns</a></h1>
7070

7171
<p>At first, the challenge was just getting something on screen. Then, it became
7272
figuring out how to write programs bigger than what would fit in my head. Instead
73-
of just reading about &#8220;How to Program in C++,&#8221; I started trying to find books
73+
of just reading about &#8220;How to Program in C++&#8221;, I started trying to find books
7474
about how to <em>organize</em> programs.</p>
7575
<p>Fast-forward several years, and a <span name="friend">friend</span> hands me a
7676
book: <em>Design Patterns: Elements of Reusable Object-Oriented Software</em>.
@@ -172,7 +172,7 @@ <h2><a href="#how-it-relates-to-design-patterns" name="how-it-relates-to-design-
172172
attempt to do that for software.</p>
173173
</aside>
174174

175-
<p>By calling this book &#8220;Game Programming Patterns,&#8221; I&#8217;m not trying to imply that
175+
<p>By calling this book &#8220;Game Programming Patterns&#8221;, I&#8217;m not trying to imply that
176176
the Gang of Four&#8217;s book is <span name="nongames">inapplicable</span> to games.
177177
On the contrary: the <a href="design-patterns-revisited.html">Design Patterns Revisited</a>
178178
section of this book covers many of the patterns from <em>Design

html/observer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ <h3><a href="#what's-going-on" name="what's-going-on">What&#8217;s going on?</a>
671671
the program, don&#8217;t use the Observer pattern to express that linkage. Prefer
672672
something more explicit.</p>
673673
<p>When you&#8217;re hacking on some big program, you tend to have lumps of it that you
674-
work on all together. We&#8217;ve lots of terminology for this like &#8220;separation of
674+
work on all together. We have lots of terminology for this like &#8220;separation of
675675
concerns&#8221; and &#8220;coherence and cohesion&#8221; and &#8220;modularity&#8221;, but it boils down to
676676
&#8220;this stuff goes together and doesn&#8217;t go with this other stuff&#8221;.</p>
677677
<p>The observer pattern is a great way to let those mostly unrelated lumps talk to

html/subclass-sandbox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ <h3><a href="#what-operations-should-be-provided" name="what-operations-should-b
338338
<aside name="include">
339339

340340
<p>Concretely, this means each source file for a subclass would only need a single
341-
<code>#include</code>: the one for its base class.</p>
341+
<code>#include</code>&#8202;&mdash;&#8202;the one for its base class.</p>
342342
</aside>
343343

344344
<p>Between these two points, there&#8217;s a wide middle ground where some operations are

0 commit comments

Comments
 (0)