Skip to content

Commit d1bb467

Browse files
sabiwarajosevalim
andauthored
Use clearer language
Co-authored-by: José Valim <[email protected]>
1 parent 6d56287 commit d1bb467

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3944,7 +3944,7 @@ defmodule Kernel do
39443944
39453945
## Variables scope
39463946
3947-
Variables can be defined or rebound in `do`/`else` blocks, but these will not leak to the outer context:
3947+
Variables set within `do`/`else` blocks do not leak to the outer context:
39483948
39493949
x = 1
39503950
if x > 0 do
@@ -3953,7 +3953,7 @@ defmodule Kernel do
39533953
end
39543954
x # 1
39553955
3956-
Variables can be defined in the condition as well, but they are available in the outer context:
3956+
Variables set in the condition are available in the outer context:
39573957
39583958
fruits = %{oranges: 3}
39593959
if count = fruits[:apples] do

0 commit comments

Comments
 (0)