summaryrefslogtreecommitdiffhomepage
path: root/swift.html.markdown
diff options
context:
space:
mode:
authorsarthfrey <sarth.frey@gmail.com>2016-01-25 18:26:23 -0500
committersarthfrey <sarth.frey@gmail.com>2016-01-25 18:26:23 -0500
commit279c28ce7dcc3f155f71c7a073e939630e8f05b6 (patch)
treecd06525da5a4350916143f025b2e5a64a56922aa /swift.html.markdown
parent299d064ecf7598144e49ef336e0abd00ccc4ae16 (diff)
parent928edf12092cea82a9eded6848b8d0b0710a977c (diff)
Merge remote-tracking branch 'adambard/master'
# Conflicts: # python.html.markdown
Diffstat (limited to 'swift.html.markdown')
-rw-r--r--swift.html.markdown10
1 files changed, 5 insertions, 5 deletions
diff --git a/swift.html.markdown b/swift.html.markdown
index e6bf1621..46768375 100644
--- a/swift.html.markdown
+++ b/swift.html.markdown
@@ -213,7 +213,7 @@ default: // required (in order to cover all possible input)
// Functions are a first-class type, meaning they can be nested
// in functions and can be passed around
-// Function with Swift header docs (format as reStructedText)
+// Function with Swift header docs (format as Swift-modified Markdown syntax)
/**
A greet operation
@@ -221,9 +221,9 @@ A greet operation
- A bullet in docs
- Another bullet in the docs
-:param: name A name
-:param: day A day
-:returns: A string containing the name and day value.
+- Parameter name : A name
+- Parameter day : A day
+- Returns : A string containing the name and day value.
*/
func greet(name: String, day: String) -> String {
return "Hello \(name), today is \(day)."
@@ -392,7 +392,7 @@ testTryStuff()
public class Shape {
public func getArea() -> Int {
- return 0;
+ return 0
}
}