Skip to content

Commit

Permalink
Cleanup typos in access docs (#7311)
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston authored and josevalim committed Feb 5, 2018
1 parent f1fd4ef commit b33f43d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/elixir/lib/access.ex
Expand Up @@ -2,16 +2,16 @@ defmodule Access do
@moduledoc """
Key-based access to data structures.
Elixir supports three main key-value constructors, keywords,
Elixir supports three main key-value constructs, keywords,
maps and structs, and two mechanisms to access those keys,
by brackets via `data[key]`, and by dot-syntax, via `data.field`.
Next we will briefly recap the key-value constructs and then
discuss the access mechanisms.
## Key-value constructors
## Key-value constructs
Elixir providess three main key-value constructors, summarized below:
Elixir provides three main key-value constructs, summarized below:
* keyword lists - they are lists of two element tuples where
the first element is an atom. Commonly written in the
Expand Down Expand Up @@ -101,7 +101,7 @@ defmodule Access do
The bracket-based syntax, `user[:name]`, is used by dynamic structures,
is extensible and returns nil on misisng keys.
The dot-based syntax, `user.name`, is used by exclusively to access atom
The dot-based syntax, `user.name`, is used exclusively to access atom
keys in maps and structs, and it raises on missing keys.
## Nested data structures
Expand Down

0 comments on commit b33f43d

Please sign in to comment.