diff options
author | Aaron Jensen <aaronjensen@gmail.com> | 2016-09-15 01:19:01 -0700 |
---|---|---|
committer | Eric Meadows-Jönsson <eric.meadows.jonsson@gmail.com> | 2016-09-15 10:19:01 +0200 |
commit | f4fef0a257fd3980c125c6eb9f9b1f348f8d5bf4 (patch) | |
tree | 45aac8f4788c4ee38ca20ffff987c8a35b7550bc | |
parent | 06111e7020d754000c7beb554f4fe0635306906c (diff) | |
download | elixir-f4fef0a257fd3980c125c6eb9f9b1f348f8d5bf4.tar.gz |
Fix `struct` built-in type documentation (#5219)
-rw-r--r-- | lib/elixir/pages/Typespecs.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/pages/Typespecs.md b/lib/elixir/pages/Typespecs.md index c49a2f670..4c3a27b60 100644 --- a/lib/elixir/pages/Typespecs.md +++ b/lib/elixir/pages/Typespecs.md @@ -111,7 +111,7 @@ Built-in type | Defined as `timeout()` | `:infinity` \| `non_neg_integer()` `no_return()` | `none()` `fun()` | `(... -> any)` -`struct()` | `%{__struct__: atom()}` +`struct()` | `%{:__struct__ => atom(), optional(atom()) => any()}` `as_boolean(t)` | `t` `keyword()` | `[{atom(), any()}]` `keyword(t)` | `[{atom(), t}]` |