Skip to content

Fix Typos #35

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

Merged
merged 1 commit into from
Dec 3, 2015
Merged
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
6 changes: 3 additions & 3 deletions docs/weak.rst
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ referent when the last strong reference is dropped is
substantially less useful for the implementation of a weak
cache. It is a common access pattern (for, say, a memoizing
cache) for a value to be looked up many times in rapid
succession, but for each use to be temporarlly disjoint
succession, but for each use to be temporarily disjoint
from the others. A naive use of weak references in this case
will simply cause the cache to thrash. This problem is less
likely to arise in an environment with nondeterministic
Expand Down Expand Up @@ -384,7 +384,7 @@ Optimization

Functions often create a large number of temporary references. In a
reference-counting environment like Swift, these references require
the implementation to implicitly perform operations to incremenet and
the implementation to implicitly perform operations to increment and
decrement the reference count. These operations can be quite fast,
but they are not free, and our experience has been that the
accumulated cost can be quite significant. A straightforward local
Expand Down Expand Up @@ -893,7 +893,7 @@ More complicated expressions really ought to be hoisted out to a
separate variable for legibility anyway.

I do believe that being able to capture the value of a property
(particulary of :code:`self`) is very important. In fact, it's
(particularly of :code:`self`) is very important. In fact, it's
important independent of weak references. It is often possible to
avoid a reference cycle by simply capturing a specific property value
instead of the base object. Capturing by value is also an
Expand Down