We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d56287 commit d1bb467Copy full SHA for d1bb467
lib/elixir/lib/kernel.ex
@@ -3944,7 +3944,7 @@ defmodule Kernel do
3944
3945
## Variables scope
3946
3947
- Variables can be defined or rebound in `do`/`else` blocks, but these will not leak to the outer context:
+ Variables set within `do`/`else` blocks do not leak to the outer context:
3948
3949
x = 1
3950
if x > 0 do
@@ -3953,7 +3953,7 @@ defmodule Kernel do
3953
end
3954
x # 1
3955
3956
- Variables can be defined in the condition as well, but they are available in the outer context:
+ Variables set in the condition are available in the outer context:
3957
3958
fruits = %{oranges: 3}
3959
if count = fruits[:apples] do
0 commit comments