summaryrefslogtreecommitdiffhomepage
path: root/swift.html.markdown
diff options
context:
space:
mode:
authorMark Green <mark@antelope.nildram.co.uk>2016-01-22 00:54:49 +0000
committerMark Green <mark@antelope.nildram.co.uk>2016-01-22 00:54:49 +0000
commit57053bc95d4166a42da8f6d1732dd21a217b073a (patch)
tree293a7775d4b46313a2ee955691141095653d4044 /swift.html.markdown
parentdef04721be506f1c7ff5ddf407f2333999570a89 (diff)
parent9a5bb286686f5dd4fb743c1bd15ad70a3c6a4a3f (diff)
Merge remote-tracking branch 'refs/remotes/adambard/master'
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
}
}