From c183ae2614aac01f627b9913a7755fda15da8d8b Mon Sep 17 00:00:00 2001 From: Herwin Date: Sun, 28 Dec 2025 17:35:47 +0100 Subject: [PATCH 1/3] Typo fix: Enumertor => Enumerator --- 4.0.md | 2 +- _src/4.0.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4.0.md b/4.0.md index fc78afc..894d9b5 100644 --- a/4.0.md +++ b/4.0.md @@ -488,7 +488,7 @@ The argument allows to provide the meta-information about the number of iteratio # Provide a size when it is known beforehand: linecount = `wc -l file.txt`.strip.to_i f = File.open('file.txt') - e = Enumertor.produce(size: linecount) { + e = Enumerator.produce(size: linecount) { raise StopIteration if f.eof? f.readline } diff --git a/_src/4.0.md b/_src/4.0.md index e7d5410..ecb5f48 100644 --- a/_src/4.0.md +++ b/_src/4.0.md @@ -488,7 +488,7 @@ The argument allows to provide the meta-information about the number of iteratio # Provide a size when it is known beforehand: linecount = `wc -l file.txt`.strip.to_i f = File.open('file.txt') - e = Enumertor.produce(size: linecount) { + e = Enumerator.produce(size: linecount) { raise StopIteration if f.eof? f.readline } From ec2743a8cdca6893b68319041ae23267e1408798 Mon Sep 17 00:00:00 2001 From: Herwin Date: Sun, 28 Dec 2025 17:42:12 +0100 Subject: [PATCH 2/3] Typo fix: local_varaible_get => local_variable_get --- 4.0.md | 2 +- _src/4.0.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4.0.md b/4.0.md index 894d9b5..c373031 100644 --- a/4.0.md +++ b/4.0.md @@ -628,7 +628,7 @@ The current state of the concept is somewhat drafty/experimental, yet it lays th ### `Binding`: separate local variables from implicit parameters[](#binding-separate-local-variables-from-implicit-parameters) -`Binding#local_variables` method now exclude numbered (implicit) parameters, and methods like `#local_varaible_get` raise an error for those names. Instead, new method group `#implicit_parameters`/`#implicit_parameter_get`/`#implicit_parameter_defined?` was introduced to refer to both kinds of implicit parameters (numbered and `it`). +`Binding#local_variables` method now exclude numbered (implicit) parameters, and methods like `#local_variable_get` raise an error for those names. Instead, new method group `#implicit_parameters`/`#implicit_parameter_get`/`#implicit_parameter_defined?` was introduced to refer to both kinds of implicit parameters (numbered and `it`). * **Reason:** It was decided, that exposing numbered parameters as "local variables" is confusing and misleading (say, you couldn't call `_1 = value`, but accidentally `binding.local_variable_set(:_1, value)` worked). So the concepts were separated. * **Discussion:** Bug #21049 diff --git a/_src/4.0.md b/_src/4.0.md index ecb5f48..3046baf 100644 --- a/_src/4.0.md +++ b/_src/4.0.md @@ -628,7 +628,7 @@ The current state of the concept is somewhat drafty/experimental, yet it lays th ### `Binding`: separate local variables from implicit parameters -`Binding#local_variables` method now exclude numbered (implicit) parameters, and methods like `#local_varaible_get` raise an error for those names. Instead, new method group `#implicit_parameters`/`#implicit_parameter_get`/`#implicit_parameter_defined?` was introduced to refer to both kinds of implicit parameters (numbered and `it`). +`Binding#local_variables` method now exclude numbered (implicit) parameters, and methods like `#local_variable_get` raise an error for those names. Instead, new method group `#implicit_parameters`/`#implicit_parameter_get`/`#implicit_parameter_defined?` was introduced to refer to both kinds of implicit parameters (numbered and `it`). * **Reason:** It was decided, that exposing numbered parameters as "local variables" is confusing and misleading (say, you couldn't call `_1 = value`, but accidentally `binding.local_variable_set(:_1, value)` worked). So the concepts were separated. * **Discussion:** [Bug #21049](https://bugs.ruby-lang.org/issues/21049) From f98f7d45ec4bbde087aa9cc994dc9865e551e00a Mon Sep 17 00:00:00 2001 From: Herwin Date: Sun, 28 Dec 2025 17:46:26 +0100 Subject: [PATCH 3/3] Typo fix: methdods => methods --- 4.0.md | 2 +- _src/4.0.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4.0.md b/4.0.md index c373031..2aef57d 100644 --- a/4.0.md +++ b/4.0.md @@ -1001,7 +1001,7 @@ After introducing ports and removing generic `Ractor.yield`, `Ractor.select` now #### Methods for waiting for a ractor[](#methods-for-waiting-for-a-ractor) -Instead of `#take`, there are now `#join` (wait till ractor ends its execution) and `#value` (`#join` + provide the return value), and also lower-level methdods `#monitor` and `#unmonitor` that provide `Port`-based abstractions to implement `#join` and alike methods. +Instead of `#take`, there are now `#join` (wait till ractor ends its execution) and `#value` (`#join` + provide the return value), and also lower-level methods `#monitor` and `#unmonitor` that provide `Port`-based abstractions to implement `#join` and alike methods. * **Discussion:** — * **Documentation:** Ractor#join, #value, #monitor, #unmonitor diff --git a/_src/4.0.md b/_src/4.0.md index 3046baf..bcc2b43 100644 --- a/_src/4.0.md +++ b/_src/4.0.md @@ -1001,7 +1001,7 @@ After introducing ports and removing generic `Ractor.yield`, `Ractor.select` now #### Methods for waiting for a ractor -Instead of `#take`, there are now `#join` (wait till ractor ends its execution) and `#value` (`#join` + provide the return value), and also lower-level methdods `#monitor` and `#unmonitor` that provide `Port`-based abstractions to implement `#join` and alike methods. +Instead of `#take`, there are now `#join` (wait till ractor ends its execution) and `#value` (`#join` + provide the return value), and also lower-level methods `#monitor` and `#unmonitor` that provide `Port`-based abstractions to implement `#join` and alike methods. * **Discussion:** — * **Documentation:** [Ractor#join](https://docs.ruby-lang.org/en/4.0/Ractor.html#method-i-join), [#value](https://docs.ruby-lang.org/en/4.0/Ractor.html#method-i-value), [#monitor](https://docs.ruby-lang.org/en/4.0/Ractor.html#method-i-monitor), [#unmonitor](https://docs.ruby-lang.org/en/4.0/Ractor.html#method-i-unmonitor)