Skip to content

fixed typo/syntax error #172

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 src/chapters/data-types/more-data-types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ address* of the object, which we visualize as an arrow pointing from the
variable box to where the data is stored. Instead of holding the actual ``Cat``
data, ``myCat`` stores *directions* for finding the data in memory.

When we to assign ``myCat`` to another variable, as in ``Cat sameCat = myCat``,
When we assign ``myCat`` to another variable, as in ``Cat sameCat = myCat``,
we do NOT create a second copy of the object or its data. Instead, we make a
second arrow pointing to the same memory location.

Expand Down