Skip to content

Commit

Permalink
Update introduction.md (#705)
Browse files Browse the repository at this point in the history
I believe that documentation can be updated to say `colon` instead of `semi-colon`. https://docs.swift.org/swift-book/documentation/the-swift-programming-language/functions
  • Loading branch information
pauljmartinez authored Nov 19, 2023
1 parent e40ac14 commit 16750b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/concept/lasagna/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ In Swift, [functions][functions] are a chunk of code that performs a task.
A function has a return type and can thereby be used as a value and be parsed as arguments to other functions.
In Swift are functions defined using the `func` keyword followed by the name of the function, arguments separated by commas, and a return type.

The arguments are defined by an argument label, a parameter name followed by a semi-colon and then a type.
The arguments are defined by an argument label, a parameter name followed by a colon and then a type.
The return type is defined by a `->` followed by the type of the return value.

```swift
Expand Down

0 comments on commit 16750b4

Please sign in to comment.