Skip to content

Commit

Permalink
fix two typos (#28731)
Browse files Browse the repository at this point in the history
(cherry picked from commit 302a507)
  • Loading branch information
hertzsprung authored and KristofferC committed Sep 8, 2018
1 parent 2747c9c commit bfd465b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/src/manual/variables-and-scoping.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ are constant by default.

Note that `const` only affects the variable binding; the variable may be bound to a mutable
object (such as an array), and that object may still be modified. Additionally when one tries
to assign a value a variable that is declared constant the following scenarios are possible:
to assign a value to a variable that is declared constant the following scenarios are possible:

* if a new value has a different type than the type of the constant then an error is thrown:
```jldoctest
Expand All @@ -522,7 +522,7 @@ julia> const z = 100
julia> z = 100
100
```
The last rule applies for immutable objects even if the vairable binding would change, e.g.:
The last rule applies for immutable objects even if the variable binding would change, e.g.:
```julia-repl
julia> const s1 = "1"
"1"
Expand Down

0 comments on commit bfd465b

Please sign in to comment.