Skip to content

Commit 8592722

Browse files
committed
Merge pull request nettlep#5 from kngspook/typo-20140805
Typo.
2 parents 6244068 + 024747a commit 8592722

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

1d. Optionals.playground/section-1.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ else
8080
//
8181
// We can conditionally store the unwrapped value to a stored value if the optional holds a value.
8282
//
83-
// In the foloowing block, we'll optionally bind the Int value to a constant named 'intValue'
83+
// In the following block, we'll optionally bind the Int value to a constant named 'intValue'
8484
if let intValue = optionalConvertedNumber
8585
{
8686
// No need to use the "!" suffix as intValue is not optional
8787
intValue
8888

8989
// In fact, since 'intValue' is an Int (not an Int?) we can't use the force-unwrap. This line
90-
// of code wont' compile:
90+
// of code won't compile:
9191
// intValue!
9292
}
9393
else

1d. Optionals.playground/timeline.xctimeline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
version = "3.0">
44
<TimelineItems>
55
<LoggerValueHistoryTimelineItem
6-
documentLocation = "#CharacterRangeLen=0&amp;CharacterRangeLoc=6821&amp;EndingColumnNumber=5&amp;EndingLineNumber=2&amp;StartingColumnNumber=4&amp;StartingLineNumber=2&amp;Timestamp=424672367.449789">
6+
documentLocation = "#CharacterRangeLen=0&amp;CharacterRangeLoc=6821&amp;EndingColumnNumber=5&amp;EndingLineNumber=2&amp;StartingColumnNumber=4&amp;StartingLineNumber=2&amp;Timestamp=428937322.498252">
77
</LoggerValueHistoryTimelineItem>
88
</TimelineItems>
99
</Timeline>

8. Enumerations.playground/section-1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Rather that containing "one of a set of integer values" like most C-like languages, Swift's
66
// enumerations can be thought of as holding one named type of a given set of named types.
77
//
8-
// To clarify: Rather than holding an ingeger value that has been pre-defined integer value
8+
// To clarify: Rather than holding an integer value that has been pre-defined integer value
99
// (Error = -1, Success = 0) an enumeration in Swift only associates a name with a type (like
1010
// Int, String, Tuple, etc.) These elements of the enumeration can then be assigned "Associated
1111
// Values." For example, an enumeration can store an "Error" which is a Tuple with an Int value

0 commit comments

Comments
 (0)