Skip to content

Commit b959049

Browse files
author
José Valim
committed
Properly indent tables
1 parent 24c4bc3 commit b959049

File tree

2 files changed

+92
-92
lines changed

2 files changed

+92
-92
lines changed

lib/elixir/lib/base.ex

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -10,85 +10,85 @@ defmodule Base do
1010
1111
## Base 16 alphabet
1212
13-
| Value | Encoding | Value | Encoding | Value | Encoding | Value | Encoding |
14-
|------:|---------:|------:|---------:|------:|---------:|------:|---------:|
15-
| 0| 0| 4| 4| 8| 8| 12| C|
16-
| 1| 1| 5| 5| 9| 9| 13| D|
17-
| 2| 2| 6| 6| 10| A| 14| E|
18-
| 3| 3| 7| 7| 11| B| 15| F|
13+
| Value | Encoding | Value | Encoding | Value | Encoding | Value | Encoding |
14+
|------:|---------:|------:|---------:|------:|---------:|------:|---------:|
15+
| 0| 0| 4| 4| 8| 8| 12| C|
16+
| 1| 1| 5| 5| 9| 9| 13| D|
17+
| 2| 2| 6| 6| 10| A| 14| E|
18+
| 3| 3| 7| 7| 11| B| 15| F|
1919
2020
## Base 32 alphabet
2121
22-
| Value | Encoding | Value | Encoding | Value | Encoding | Value | Encoding |
23-
|------:|---------:|------:|---------:|------:|---------:|------:|---------:|
24-
| 0| A| 9| J| 18| S| 27| 3|
25-
| 1| B| 10| K| 19| T| 28| 4|
26-
| 2| C| 11| L| 20| U| 29| 5|
27-
| 3| D| 12| M| 21| V| 30| 6|
28-
| 4| E| 13| N| 22| W| 31| 7|
29-
| 5| F| 14| O| 23| X| | |
30-
| 6| G| 15| P| 24| Y| (pad)| =|
31-
| 7| H| 16| Q| 25| Z| | |
32-
| 8| I| 17| R| 26| 2| | |
22+
| Value | Encoding | Value | Encoding | Value | Encoding | Value | Encoding |
23+
|------:|---------:|------:|---------:|------:|---------:|------:|---------:|
24+
| 0| A| 9| J| 18| S| 27| 3|
25+
| 1| B| 10| K| 19| T| 28| 4|
26+
| 2| C| 11| L| 20| U| 29| 5|
27+
| 3| D| 12| M| 21| V| 30| 6|
28+
| 4| E| 13| N| 22| W| 31| 7|
29+
| 5| F| 14| O| 23| X| | |
30+
| 6| G| 15| P| 24| Y| (pad)| =|
31+
| 7| H| 16| Q| 25| Z| | |
32+
| 8| I| 17| R| 26| 2| | |
3333
3434
3535
## Base 32 (extended hex) alphabet
3636
37-
| Value | Encoding | Value | Encoding | Value | Encoding | Value | Encoding |
38-
|------:|---------:|------:|---------:|------:|---------:|------:|---------:|
39-
| 0| 0| 9| 9| 18| I| 27| R|
40-
| 1| 1| 10| A| 19| J| 28| S|
41-
| 2| 2| 11| B| 20| K| 29| T|
42-
| 3| 3| 12| C| 21| L| 30| U|
43-
| 4| 4| 13| D| 22| M| 31| V|
44-
| 5| 5| 14| E| 23| N| | |
45-
| 6| 6| 15| F| 24| O| (pad)| =|
46-
| 7| 7| 16| G| 25| P| | |
47-
| 8| 8| 17| H| 26| Q| | |
37+
| Value | Encoding | Value | Encoding | Value | Encoding | Value | Encoding |
38+
|------:|---------:|------:|---------:|------:|---------:|------:|---------:|
39+
| 0| 0| 9| 9| 18| I| 27| R|
40+
| 1| 1| 10| A| 19| J| 28| S|
41+
| 2| 2| 11| B| 20| K| 29| T|
42+
| 3| 3| 12| C| 21| L| 30| U|
43+
| 4| 4| 13| D| 22| M| 31| V|
44+
| 5| 5| 14| E| 23| N| | |
45+
| 6| 6| 15| F| 24| O| (pad)| =|
46+
| 7| 7| 16| G| 25| P| | |
47+
| 8| 8| 17| H| 26| Q| | |
4848
4949
## Base 64 alphabet
5050
51-
| Value | Encoding | Value | Encoding | Value | Encoding | Value | Encoding |
52-
|------:|---------:|------:|---------:|------:|---------:|------:|---------:|
53-
| 0| A| 17| R| 34| i| 51| z|
54-
| 1| B| 18| S| 35| j| 52| 0|
55-
| 2| C| 19| T| 36| k| 53| 1|
56-
| 3| D| 20| U| 37| l| 54| 2|
57-
| 4| E| 21| V| 38| m| 55| 3|
58-
| 5| F| 22| W| 39| n| 56| 4|
59-
| 6| G| 23| X| 40| o| 57| 5|
60-
| 7| H| 24| Y| 41| p| 58| 6|
61-
| 8| I| 25| Z| 42| q| 59| 7|
62-
| 9| J| 26| a| 43| r| 60| 8|
63-
| 10| K| 27| b| 44| s| 61| 9|
64-
| 11| L| 28| c| 45| t| 62| +|
65-
| 12| M| 29| d| 46| u| 63| /|
66-
| 13| N| 30| e| 47| v| | |
67-
| 14| O| 31| f| 48| w| (pad)| =|
68-
| 15| P| 32| g| 49| x| | |
69-
| 16| Q| 33| h| 50| y| | |
51+
| Value | Encoding | Value | Encoding | Value | Encoding | Value | Encoding |
52+
|------:|---------:|------:|---------:|------:|---------:|------:|---------:|
53+
| 0| A| 17| R| 34| i| 51| z|
54+
| 1| B| 18| S| 35| j| 52| 0|
55+
| 2| C| 19| T| 36| k| 53| 1|
56+
| 3| D| 20| U| 37| l| 54| 2|
57+
| 4| E| 21| V| 38| m| 55| 3|
58+
| 5| F| 22| W| 39| n| 56| 4|
59+
| 6| G| 23| X| 40| o| 57| 5|
60+
| 7| H| 24| Y| 41| p| 58| 6|
61+
| 8| I| 25| Z| 42| q| 59| 7|
62+
| 9| J| 26| a| 43| r| 60| 8|
63+
| 10| K| 27| b| 44| s| 61| 9|
64+
| 11| L| 28| c| 45| t| 62| +|
65+
| 12| M| 29| d| 46| u| 63| /|
66+
| 13| N| 30| e| 47| v| | |
67+
| 14| O| 31| f| 48| w| (pad)| =|
68+
| 15| P| 32| g| 49| x| | |
69+
| 16| Q| 33| h| 50| y| | |
7070
7171
## Base 64 (URL and filename safe) alphabet
7272
73-
| Value | Encoding | Value | Encoding | Value | Encoding | Value | Encoding |
74-
|------:|---------:|------:|---------:|------:|---------:|------:|---------:|
75-
| 0| A| 17| R| 34| i| 51| z|
76-
| 1| B| 18| S| 35| j| 52| 0|
77-
| 2| C| 19| T| 36| k| 53| 1|
78-
| 3| D| 20| U| 37| l| 54| 2|
79-
| 4| E| 21| V| 38| m| 55| 3|
80-
| 5| F| 22| W| 39| n| 56| 4|
81-
| 6| G| 23| X| 40| o| 57| 5|
82-
| 7| H| 24| Y| 41| p| 58| 6|
83-
| 8| I| 25| Z| 42| q| 59| 7|
84-
| 9| J| 26| a| 43| r| 60| 8|
85-
| 10| K| 27| b| 44| s| 61| 9|
86-
| 11| L| 28| c| 45| t| 62| -|
87-
| 12| M| 29| d| 46| u| 63| _|
88-
| 13| N| 30| e| 47| v| | |
89-
| 14| O| 31| f| 48| w| (pad)| =|
90-
| 15| P| 32| g| 49| x| | |
91-
| 16| Q| 33| h| 50| y| | |
73+
| Value | Encoding | Value | Encoding | Value | Encoding | Value | Encoding |
74+
|------:|---------:|------:|---------:|------:|---------:|------:|---------:|
75+
| 0| A| 17| R| 34| i| 51| z|
76+
| 1| B| 18| S| 35| j| 52| 0|
77+
| 2| C| 19| T| 36| k| 53| 1|
78+
| 3| D| 20| U| 37| l| 54| 2|
79+
| 4| E| 21| V| 38| m| 55| 3|
80+
| 5| F| 22| W| 39| n| 56| 4|
81+
| 6| G| 23| X| 40| o| 57| 5|
82+
| 7| H| 24| Y| 41| p| 58| 6|
83+
| 8| I| 25| Z| 42| q| 59| 7|
84+
| 9| J| 26| a| 43| r| 60| 8|
85+
| 10| K| 27| b| 44| s| 61| 9|
86+
| 11| L| 28| c| 45| t| 62| -|
87+
| 12| M| 29| d| 46| u| 63| _|
88+
| 13| N| 30| e| 47| v| | |
89+
| 14| O| 31| f| 48| w| (pad)| =|
90+
| 15| P| 32| g| 49| x| | |
91+
| 16| Q| 33| h| 50| y| | |
9292
9393
"""
9494

lib/elixir/lib/kernel/typespec.ex

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -104,36 +104,36 @@ defmodule Kernel.Typespec do
104104
105105
## Built-in types
106106
107-
Built-in type | Defined as
108-
:-------------------- | :---------
109-
`term` | `any`
110-
`binary` | `<< _ :: _ * 8 >>`
111-
`bitstring` | `<< _ :: _ * 1 >>`
112-
`boolean` | `false` &#124; `true`
113-
`byte` | `0..255`
114-
`char` | `0..0xffff`
115-
`number` | `integer` &#124; `float`
116-
`list` | `[any]`
117-
`maybe_improper_list` | `maybe_improper_list(any, any)`
118-
`nonempty_list` | `nonempty_list(any)`
119-
`iodata` | `iolist` &#124; `binary`
120-
`iolist` | `maybe_improper_list(byte` &#124; `binary` &#124; `iolist, binary` &#124; `[])`
121-
`module` | `atom`
122-
`mfa` | `{atom, atom, arity}`
123-
`arity` | `0..255`
124-
`node` | `atom`
125-
`timeout` | `:infinity` &#124; `non_neg_integer`
126-
`no_return` | `none`
127-
`fun` | `(... -> any)`
107+
Built-in type | Defined as
108+
:-------------------- | :---------
109+
`term` | `any`
110+
`binary` | `<< _ :: _ * 8 >>`
111+
`bitstring` | `<< _ :: _ * 1 >>`
112+
`boolean` | `false` &#124; `true`
113+
`byte` | `0..255`
114+
`char` | `0..0xffff`
115+
`number` | `integer` &#124; `float`
116+
`list` | `[any]`
117+
`maybe_improper_list` | `maybe_improper_list(any, any)`
118+
`nonempty_list` | `nonempty_list(any)`
119+
`iodata` | `iolist` &#124; `binary`
120+
`iolist` | `maybe_improper_list(byte` &#124; `binary` &#124; `iolist, binary` &#124; `[])`
121+
`module` | `atom`
122+
`mfa` | `{atom, atom, arity}`
123+
`arity` | `0..255`
124+
`node` | `atom`
125+
`timeout` | `:infinity` &#124; `non_neg_integer`
126+
`no_return` | `none`
127+
`fun` | `(... -> any)`
128128
129129
Some built-in types cannot be expressed with valid syntax according to the
130130
language defined above.
131131
132-
Built-in type | Can be interpreted as
133-
:---------------- | :--------------------
134-
`non_neg_integer` | `0..`
135-
`pos_integer` | `1..`
136-
`neg_integer` | `..-1`
132+
Built-in type | Can be interpreted as
133+
:---------------- | :--------------------
134+
`non_neg_integer` | `0..`
135+
`pos_integer` | `1..`
136+
`neg_integer` | `..-1`
137137
138138
Types defined in other modules are referred to as "remote types", they are
139139
referenced as `Module.type_name` (ex. `Enum.t` or `String.t`).

0 commit comments

Comments
 (0)