Skip to content

Commit 7024d96

Browse files
eksperimentaljosevalim
authored andcommitted
Properly spell UTF-8, built-in and format bitsintax (elixir-lang#867)
1 parent c0d2fbe commit 7024d96

5 files changed

+11
-11
lines changed

_posts/2012-10-20-elixir-v0-7-0-released.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ excerpt: Elixir v0.7.0 is released with many improvements! Read on for more info
77

88
---
99

10-
Elixir v0.7.0 was released with bug fixes and many improvements, like a `String` module to handle utf-8 binaries and support to environments and nested dependencies in Mix.
10+
Elixir v0.7.0 was released with bug fixes and many improvements, like a `String` module to handle UTF-8 binaries and support to environments and nested dependencies in Mix.
1111

1212
We have also taken important steps into normalizing our APIs. In Erlang, accesses to tuple and lists are one-based and binaries are zero-based, but in Elixir we have normalized all of them to rely on zero-based access.
1313

_posts/2013-01-27-elixir-v0-8-0-released.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ We have written a whole [guide chapter about creating OTP applications, supervis
2222

2323
## Improved Unicode support
2424

25-
Elixir favors the use of utf-8 binaries since its first release. In the latest releases, we took it up a notch by adding Unicode support, built upon the Unicode Standard 6.2.0. Elixir v0.8 takes this even further, adding more convenience functions and better support to named sequences:
25+
Elixir favors the use of UTF-8 binaries since its first release. In the latest releases, we took it up a notch by adding Unicode support, built upon the Unicode Standard 6.2.0. Elixir v0.8 takes this even further, adding more convenience functions and better support to named sequences:
2626

2727
```elixir
2828
String.capitalize("fiN") #=> "Fin"

crash-course.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ end
825825

826826
## Adding Elixir to existing Erlang programs
827827

828-
Elixir compiles into BEAM byte code (via Erlang Abstract Format). This means that Elixir code can be called from Erlang and vice versa, without the need to write any bindings. All Elixir modules start with the `Elixir.` prefix followed by the regular Elixir name. For example, here is how to use the utf-8 aware `String` downcase from Elixir in Erlang:
828+
Elixir compiles into BEAM byte code (via Erlang Abstract Format). This means that Elixir code can be called from Erlang and vice versa, without the need to write any bindings. All Elixir modules start with the `Elixir.` prefix followed by the regular Elixir name. For example, here is how to use the UTF-8 aware `String` downcase from Elixir in Erlang:
829829

830830
```erlang
831831
-module(bstring).

docs.markdown

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Choose which version you want documentation for.
1414
* [EEx](/docs/stable/eex/) - templating library
1515
* [ExUnit](/docs/stable/ex_unit/) - unit test library
1616
* [IEx](/docs/stable/iex/) - interactive shell
17-
* [Logger](/docs/stable/logger/) - builtin Logger
17+
* [Logger](/docs/stable/logger/) - built-in Logger
1818
* [Mix](/docs/stable/mix/) - build tool
1919

2020
#### Master
@@ -23,7 +23,7 @@ Choose which version you want documentation for.
2323
* [EEx](/docs/master/eex/) - templating library
2424
* [ExUnit](/docs/master/ex_unit/) - unit test library
2525
* [IEx](/docs/master/iex/) - interactive shell
26-
* [Logger](/docs/master/logger/) - builtin Logger
26+
* [Logger](/docs/master/logger/) - built-in Logger
2727
* [Mix](/docs/master/mix/) - build tool
2828

2929
<h4 id="v1.3">v1.3 <small>(<a href="https://github.com/elixir-lang/elixir/releases/download/v1.3.1/Docs.zip">download</a>)</small></h4>
@@ -32,7 +32,7 @@ Choose which version you want documentation for.
3232
* [EEx](/docs/v1.3/eex/) - templating library
3333
* [ExUnit](/docs/v1.3/ex_unit/) - unit test library
3434
* [IEx](/docs/v1.3/iex/) - interactive shell
35-
* [Logger](/docs/v1.3/logger/) - builtin Logger
35+
* [Logger](/docs/v1.3/logger/) - built-in Logger
3636
* [Mix](/docs/v1.3/mix/) - build tool
3737

3838
<h4 id="v1.2">v1.2 <small>(<a href="https://github.com/elixir-lang/elixir/releases/download/v1.2.6/Docs.zip">download</a>)</small></h4>
@@ -41,7 +41,7 @@ Choose which version you want documentation for.
4141
* [EEx](/docs/v1.2/eex/) - templating library
4242
* [ExUnit](/docs/v1.2/ex_unit/) - unit test library
4343
* [IEx](/docs/v1.2/iex/) - interactive shell
44-
* [Logger](/docs/v1.2/logger/) - builtin Logger
44+
* [Logger](/docs/v1.2/logger/) - built-in Logger
4545
* [Mix](/docs/v1.2/mix/) - build tool
4646

4747
<h4 id="v1.1">v1.1 <small>(<a href="https://github.com/elixir-lang/elixir/releases/download/v1.1.1/Docs.zip">download</a>)</small></h4>
@@ -50,5 +50,5 @@ Choose which version you want documentation for.
5050
* [EEx](/docs/v1.1/eex/) - templating library
5151
* [ExUnit](/docs/v1.1/ex_unit/) - unit test library
5252
* [IEx](/docs/v1.1/iex/) - interactive shell
53-
* [Logger](/docs/v1.1/logger/) - builtin Logger
53+
* [Logger](/docs/v1.1/logger/) - built-in Logger
5454
* [Mix](/docs/v1.1/mix/) - build tool

getting-started/binaries-strings-and-char-lists.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ iex> "hełło" <> <<0>>
9191
<<104, 101, 197, 130, 197, 130, 111, 0>>
9292
```
9393

94-
Each number given to a binary is meant to represent a byte and therefore must go up to 255. Binaries allow modifiers to be given to store numbers bigger than 255 or to convert a code point to its utf8 representation:
94+
Each number given to a binary is meant to represent a byte and therefore must go up to 255. Binaries allow modifiers to be given to store numbers bigger than 255 or to convert a code point to its UTF-8 representation:
9595

9696
```iex
9797
iex> <<255>>
@@ -113,9 +113,9 @@ iex> <<1 :: size(1)>>
113113
<<1::size(1)>>
114114
iex> <<2 :: size(1)>> # truncated
115115
<<0::size(1)>>
116-
iex> is_binary(<< 1 :: size(1)>>)
116+
iex> is_binary(<<1 :: size(1)>>)
117117
false
118-
iex> is_bitstring(<< 1 :: size(1)>>)
118+
iex> is_bitstring(<<1 :: size(1)>>)
119119
true
120120
iex> bit_size(<< 1 :: size(1)>>)
121121
1

0 commit comments

Comments
 (0)