Skip to content

Commit 5b7b8d6

Browse files
committed
Fix typos
1 parent a3a8758 commit 5b7b8d6

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

_src/evolution.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ This section lists changes in how methods are defined and invoked, as well as ne
327327
* [2.6](2.6.md#proc-composition) **`Proc` composition with [>>](https://docs.ruby-lang.org/en/2.6.0/Proc.html#method-i-3E-3E) and [<<](https://docs.ruby-lang.org/en/2.6.0/Proc.html#method-i-3C-3C)**:
328328
```ruby
329329
PROCESSOR = proc { |str| '{' + str + '}' } >> :upcase.to_proc >> method(:puts)
330-
%w[test me please].map(&PROCESSORS)
330+
%w[test me please].map(&PROCESSOR)
331331
# prints
332332
# {TEST}
333333
# {ME}
@@ -950,7 +950,7 @@ Freezing of object makes its state immutable. The important thing about freezing
950950
* **2.0** Fixnums, Bignums and Floats are frozen. While number values never were mutable, before Ruby 2.0 it was possible to change additional internal state for them, making it weird:
951951
```ruby
952952
10.instance_variable_set('@foo', 5) # works in 1.9, "can't modify frozen Fixnum" in 2.0
953-
10.instance_variable_set('@foo') # => 5 in Ruby 1.9
953+
10.instance_variable_get('@foo') # => 5 in Ruby 1.9
954954
```
955955
* **2.1** All symbols are frozen.
956956
* **2.1** `"string_literal".freeze` is optimized to always return the same object for same literal
@@ -971,11 +971,11 @@ Freezing of object makes its state immutable. The important thing about freezing
971971
* **2.1** — 2013, Dec 25 (the same as every version after this)
972972
* **2.2** — 2014
973973
* **2.3** — 2015
974-
* [2.4](/2.4.html) — 2016
975-
* [2.5](/2.5.html) — 2017
976-
* [2.6](/2.6.html) — 2018
977-
* [2.7](/2.7.html) — 2019
978-
* [3.0](/3.0.html) — 2020
979-
* [3.1](/3.1.html) — 2021
974+
* [2.4](2.4.md) — 2016
975+
* [2.5](2.5.md) — 2017
976+
* [2.6](2.6.md) — 2018
977+
* [2.7](2.7.md) — 2019
978+
* [3.0](3.0.md) — 2020
979+
* [3.1](3.1.md) — 2021
980980
981981

evolution.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ This section lists changes in how methods are defined and invoked, as well as ne
327327
* <span class="ruby-version">[2.6](2.6.md#proc-composition)</span> **`Proc` composition with <a class="ruby-doc" href="https://docs.ruby-lang.org/en/2.6.0/Proc.html#method-i-3E-3E"><code>>></code></a> and <a class="ruby-doc" href="https://docs.ruby-lang.org/en/2.6.0/Proc.html#method-i-3C-3C"><code><<</code></a>**:
328328
```ruby
329329
PROCESSOR = proc { |str| '{' + str + '}' } >> :upcase.to_proc >> method(:puts)
330-
%w[test me please].map(&PROCESSORS)
330+
%w[test me please].map(&PROCESSOR)
331331
# prints
332332
# {TEST}
333333
# {ME}
@@ -950,7 +950,7 @@ Freezing of object makes its state immutable. The important thing about freezing
950950
* <span class="ruby-version">**2.0**</span> Fixnums, Bignums and Floats are frozen. While number values never were mutable, before Ruby 2.0 it was possible to change additional internal state for them, making it weird:
951951
```ruby
952952
10.instance_variable_set('@foo', 5) # works in 1.9, "can't modify frozen Fixnum" in 2.0
953-
10.instance_variable_set('@foo') # => 5 in Ruby 1.9
953+
10.instance_variable_get('@foo') # => 5 in Ruby 1.9
954954
```
955955
* <span class="ruby-version">**2.1**</span> All symbols are frozen.
956956
* <span class="ruby-version">**2.1**</span> `"string_literal".freeze` is optimized to always return the same object for same literal
@@ -971,11 +971,11 @@ Freezing of object makes its state immutable. The important thing about freezing
971971
* <span class="ruby-version">**2.1**</span>2013, Dec 25 (the same as every version after this)
972972
* <span class="ruby-version">**2.2**</span>2014
973973
* <span class="ruby-version">**2.3**</span>2015
974-
* <span class="ruby-version">[2.4](/2.4.html)</span>2016
975-
* <span class="ruby-version">[2.5](/2.5.html)</span>2017
976-
* <span class="ruby-version">[2.6](/2.6.html)</span>2018
977-
* <span class="ruby-version">[2.7](/2.7.html)</span>2019
978-
* <span class="ruby-version">[3.0](/3.0.html)</span>2020
979-
* <span class="ruby-version">[3.1](/3.1.html)</span>2021
974+
* <span class="ruby-version">[2.4](2.4.md)</span>2016
975+
* <span class="ruby-version">[2.5](2.5.md)</span>2017
976+
* <span class="ruby-version">[2.6](2.6.md)</span>2018
977+
* <span class="ruby-version">[2.7](2.7.md)</span>2019
978+
* <span class="ruby-version">[3.0](3.0.md)</span>2020
979+
* <span class="ruby-version">[3.1](3.1.md)</span>2021
980980

981981

0 commit comments

Comments
 (0)