mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
[swift/en] Fix typos
This commit is contained in:
parent
ef1ccd2b0f
commit
db010c8a72
@ -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)")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user