Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in ch.19 #1165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion book/strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Like a tagged union, each Obj starts with a tag field that identifies what kind
of object it is -- string, instance, etc. Following that are the payload fields.
Instead of a union with cases for each type, each type is its own separate
struct. The tricky part is how to treat these structs uniformly since C has no
concept of inheritance or polymorphism. I'll explain that soon, but first lets
concept of inheritance or polymorphism. I'll explain that soon, but first let's
get the preliminary stuff out of the way.

The name "Obj" itself refers to a struct that contains the state shared across
Expand Down
2 changes: 1 addition & 1 deletion site/strings.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ <h2><a href="#struct-inheritance" id="struct-inheritance"><small>19&#8202;.&#820
of object it is<span class="em">&mdash;</span>string, instance, etc. Following that are the payload fields.
Instead of a union with cases for each type, each type is its own separate
struct. The tricky part is how to treat these structs uniformly since C has no
concept of inheritance or polymorphism. I&rsquo;ll explain that soon, but first lets
concept of inheritance or polymorphism. I&rsquo;ll explain that soon, but first let&rsquo;s
get the preliminary stuff out of the way.</p>
<p>The name &ldquo;Obj&rdquo; itself refers to a struct that contains the state shared across
all object types. It&rsquo;s sort of like the &ldquo;base class&rdquo; for objects. Because of
Expand Down