We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 33bff42 + c4f5492 commit aee8de7Copy full SHA for aee8de7
a_swift_tour.html
@@ -326,7 +326,7 @@ <h2 id="-">简单值</h2>
326
</code></pre><p>使用<code>..</code>创建的范围不包含上界,如果想包含的话需要使用<code>...</code>。</p>
327
<h2 id="-">函数和闭包</h2>
328
<p>使用<code>func</code>来声明一个函数,使用名字和参数来调用函数。使用<code>-></code>来指定函数返回值。</p>
329
-<pre><code>unc greet(name: String, day: String) -> String {
+<pre><code>func greet(name: String, day: String) -> String {
330
return "Hello \(name), today is \(day)."
331
}
332
greet("Bob", "Tuesday")
0 commit comments