Skip to content

Commit

Permalink
Fix typos in documentation: Correct 'encapsultion' to 'encapsulation'…
Browse files Browse the repository at this point in the history
…, 'valus' to 'values', and 'distinghuish' to 'distinguish'.
  • Loading branch information
joaolago1113 committed Dec 17, 2023
1 parent be273ff commit d7ee3b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@

- `put`: write to container (overwrites if entry already exists)

Note: Choosing this instead of `set` since it works better for containers like sets and is visually easier to distinghuish from `get`.
Note: Choosing this instead of `set` since it works better for containers like sets and is visually easier to distinguish from `get`.

- `delete`: remove from collection (does nothing if not present)

Expand All @@ -116,7 +116,7 @@

- `keys`: iterator over keys of collection (same as `vals` for sets)

- `vals`: iterator over valus of collection
- `vals`: iterator over values of collection

- `entries`: iterator over (key, value) pairs

Expand Down Expand Up @@ -160,7 +160,7 @@

## Classes

* Abstract data types need to be provided as classes, since that currently is the only means for encapsultion.
* Abstract data types need to be provided as classes, since that currently is the only means for encapsulation.
In particular, use classes for any type where it is desirable to maintain the liberty to change its representation in the future --
a library type that is transparent and happens to be sharable by accident can never again be changed, since clients might already use it in a shared context.

Expand Down

0 comments on commit d7ee3b8

Please sign in to comment.