From bb0fa2015f0d8778877dab7441862a82c74966ca Mon Sep 17 00:00:00 2001 From: John Doe Date: Sun, 19 Mar 2017 17:27:09 +0100 Subject: [PATCH] Added comments --- Variables.playground/Contents.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Variables.playground/Contents.swift b/Variables.playground/Contents.swift index dbc0d4f..357dcb1 100644 --- a/Variables.playground/Contents.swift +++ b/Variables.playground/Contents.swift @@ -4,9 +4,9 @@ print(favoriteCharacter) favoriteCharacter = "Tyrion Lannister" print(favoriteCharacter) -favoriteCharacter = 76 +favoriteCharacter = 76 // you can not change the type only the value due to type safety let ultimateFavoriteCharacter = "Arya Stark" print(ultimateFavoriteCharacter) -ultimateFavoriteCharacter = "Daenerys Targaryen" +ultimateFavoriteCharacter = "Daenerys Targaryen" // you can not change the value of the constant. Constants are not mutable. If you want to change value you need to change to a variable.