1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 18:24:39 +02:00

[swift/en] Fix typos

This commit is contained in:
Hugo Locurcio
2019-10-22 09:10:07 +02:00
parent ef1ccd2b0f
commit db010c8a72

View File

@@ -91,7 +91,7 @@ let multiLineString = """
This is a multi-line string.
It's called that because it takes up multiple lines (wow!)
Any indentation beyond the closing quotation marks is kept, the rest is discarded.
You can include " or "" in multi-line strings because the delimeter is three "s.
You can include " or "" in multi-line strings because the delimiter is three "s.
"""
// Arrays
@@ -370,7 +370,7 @@ func say(_ message: String) {
}
say("Hello")
// Default parameters can be ommitted when calling the function.
// Default parameters can be omitted when calling the function.
func printParameters(requiredParameter r: Int, optionalParameter o: Int = 10) {
print("The required parameter was \(r) and the optional parameter was \(o)")
}