Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fsalata committed May 7, 2022
1 parent 42b09f5 commit 2d305ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Unwrap/Content/SixtySeconds/initializers.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
{
"answer": "struct Sport {\n\tvar name: String\n\tvar isOlympicSport: Bool\n}\nlet chessBoxing = Sport(name: \"Chessboxing\", isOlympicSport: \"false\")",
"reason": "The <code>isOlympicSport<\/code> property is a Boolean, but this attempts to create a <code>Sport<\/code> instance by providing with a string."
"reason": "The <code>isOlympicSport<\/code> property is a Boolean, but this attempts to create a <code>Sport<\/code> instance by providing it with a string."
},
{
"answer": "struct Media {\n\tvar type: String\n\tvar users: Int\n\tinit() {\n\t\t\n\t}\n}\nlet tv = Media(type: \"Television\", users: 10_000_000)",
Expand All @@ -57,4 +57,4 @@
"reason": "This code does not provide a value for the <code>maxWarp<\/code> property."
}
]
}
}
2 changes: 1 addition & 1 deletion Unwrap/Content/SixtySeconds/range-operators.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p>Swift gives us two ways of making ranges: the <code>..&lt;</code> and <code>...</code> operators. The half-open range operator, <code>..&lt;</code>, creates ranges up to but excluding the final value, and the closed range operator, <code>...</code>, creates ranges up to and <em>including</em> the final value.</p>
<p>For example, the range <code>1..&lt;5</code> contains the numbers 1, 2, 3, and 4, whereas the range <code>1...5</code> contains the numbers 1, 2, 3, 4, and 5.</p>
<p>Ranges are helpful with <code>switch</code> blocks, because you can use them for each of your cases. For example, if someone sat an exam we could print different messages depending on their score:</p>
<p>Ranges are helpful with <code>switch</code> blocks, because you can use them for each of your cases. For example, if someone's at an exam we could print different messages depending on their score:</p>
<pre class="code">
<p></p>
<p><span class="keyword">let</span> score <span class="operator">=</span> <span class="number">85</span></p>
Expand Down

0 comments on commit 2d305ca

Please sign in to comment.