improved wording (#30783)

* improved wording

* added an apostrophe
pull/32164/head^2
timrayle 2019-04-01 10:59:51 -07:00 committed by The Coding Aviator
parent a14339abb9
commit 5524ecad8f
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ title: Variables
A variable associates a name with a value of a particular type. There are two main ways to create variables in Swift. `let` and `var`. To declare constants use the `let` keyword. To declare mutable variables use the `var` keyword.
The benefit of having two ways to store variables in Swift is to prevent errors of changing variables that should be constant.
The benefit of having two ways to store variables in Swift is to prevent errors caused by modifying a variable that should be constant.
```Swift
let daysInAWeek = 7