Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
Hashable/Hasher: Add a few missing words
Browse files Browse the repository at this point in the history
This also fixes one other error (they/we).
  • Loading branch information
ole committed Aug 14, 2018
1 parent 3292e5c commit b8ad4dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 2018-08-13-hashable.md
Expand Up @@ -94,9 +94,9 @@ struct Color {
```

To conform to `Equatable`,
had to provide an implementation for the `==` operator.
you had to provide an implementation for the `==` operator.
To conform to `Hashable`,
had to provide an implementation of the computed `hashValue` property:
you had to provide an implementation of the computed `hashValue` property:

```swift
// Swift < 4.1
Expand Down Expand Up @@ -158,7 +158,7 @@ if their members also conform to those protocols.
In addition to being a huge boost to developer productivity,
this can drastically reduce the size of a codebase.
For instance, our `Color` example from before ---
now ⅓ of its original size:
is now ⅓ of its original size:

```swift
// Swift >= 4.1
Expand Down Expand Up @@ -295,7 +295,7 @@ to make hash values even less predictable.
The challenge of programming analogies
is they normalize antisocial behavior by way of edge cases.

We excel as software engineers when they can think through
We excel as software engineers when we can think through
all the ways that an attacker might leverage a particular behavior
to some sinister end --- as in the case of hash-flooding DoS attacks.
But by doing so,
Expand Down

0 comments on commit b8ad4dd

Please sign in to comment.