correct a mistake

This commit is contained in:
numbbbbb
2014-06-10 16:50:52 +08:00
parent f6c0a09e6e
commit fad7fd2c23
42 changed files with 80 additions and 80 deletions

View File

@ -46,7 +46,7 @@
<div class="book" data-level="1.2" data-basepath=".." data-revision="1402387034522">
<div class="book" data-level="1.2" data-basepath=".." data-revision="1402390224923">
<div class="book-header">
<!-- Actions Left -->
<a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
@ -587,7 +587,7 @@
<div class="page-inner">
<section class="normal" id="section-gitbook_5">
<section class="normal" id="section-gitbook_83">
<h1 id="swift-">Swift 初见</h1>
<p>本页内容包括:</p>
@ -608,7 +608,7 @@
<p>注意:为了获得最好的体验,在 Xcode 当中使用代码预览功能。代码预览功能可以让你编辑代码并实时看到运行结果。</p>
</blockquote>
<h2 id="-">简单值</h2>
<p>使用<code>let</code>来声明常量,使用<code>var</code>来声明变量。一个常量的值在编译时并不需要获取,但是你只能为它赋值一次。也就是说你可以用常量来表示这样一个值:你只需要决定一次,但是需要使用很多次。</p>
<p>使用<code>let</code>来声明常量,使用<code>var</code>来声明变量。一个常量的值在编译时并不需要获取,但是你必须而且只能为它赋值一次。也就是说你可以用常量来表示这样一个值:你只需要决定一次,但是需要使用很多次。</p>
<pre><code>var myVariable = 42
myVariable = 50
let myConstant = 42