Skip to content

Commit aee8de7

Browse files
committed
Merge pull request #1 from baocaixiong/patch-1
365行少个f
2 parents 33bff42 + c4f5492 commit aee8de7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

a_swift_tour.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ <h2 id="-">简单值</h2>
326326
</code></pre><p>使用<code>..</code>创建的范围不包含上界,如果想包含的话需要使用<code>...</code></p>
327327
<h2 id="-">函数和闭包</h2>
328328
<p>使用<code>func</code>来声明一个函数,使用名字和参数来调用函数。使用<code>-&gt;</code>来指定函数返回值。</p>
329-
<pre><code>unc greet(name: String, day: String) -&gt; String {
329+
<pre><code>func greet(name: String, day: String) -&gt; String {
330330
return &quot;Hello \(name), today is \(day).&quot;
331331
}
332332
greet(&quot;Bob&quot;, &quot;Tuesday&quot;)

0 commit comments

Comments
 (0)