Correct doc typo

This commit is contained in:
Vitalii Elenhaupt 2020-03-27 23:17:36 +02:00
parent a54af0363a
commit 02f4afaa64
No known key found for this signature in database
GPG key ID: CD0BF17825928BC0

View file

@ -18,7 +18,7 @@ module Ameba::Rule::Lint
# 3.times { puts channel.receive } # => # 3, 3, 3 # 3.times { puts channel.receive } # => # 3, 3, 3
# ``` # ```
# #
# The problem is there is only one shared between fibers variable `i` # The problem is there is only one shared between fibers variable `n`
# and when `channel.receive` is executed its value is `3`. # and when `channel.receive` is executed its value is `3`.
# #
# To solve this, the code above needs to be rewritten to the following: # To solve this, the code above needs to be rewritten to the following: