doc: Update swift.md (#137) 7f3a01ab23

This commit is contained in:
jaywcjlove
2022-11-18 08:37:40 +00:00
parent ae39efda50
commit 233a9d2873
2 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@
</span><span class="code-line"><span class="token keyword">let</span> isMorning<span class="token punctuation">:</span> <span class="token class-name">Bool</span> <span class="token operator">=</span> <span class="token boolean">true</span>
</span></code></pre>
<p>常量是不可变的。它们的值不能改变:</p>
<pre class="language-swift"><code class="language-swift code-highlight"><span class="code-line"> numberOfToys<span class="token punctuation">:</span> <span class="token class-name">Int</span> <span class="token operator">=</span> <span class="token number">8</span>
<pre class="language-swift"><code class="language-swift code-highlight"><span class="code-line"><span class="token keyword">let</span> numberOfToys<span class="token punctuation">:</span> <span class="token class-name">Int</span> <span class="token operator">=</span> <span class="token number">8</span>
</span><span class="code-line">numberOfToys <span class="token operator">+=</span> <span class="token number">1</span>
</span><span class="code-line"><span class="token comment">// ❌ 错误numberOfToys 不可变</span>
</span></code></pre>

View File

@ -637,7 +637,7 @@
<!--rehype:class=home-card&style=margin:1.2rem 0;display: flex;justify-content: center;-->
<p>如果你有资源,可以很方便部署 web 版,这非常简单,只需要克隆 gh-pages 分支代码到你的静态服务就可以了,还可以使用 <a href="https://hub.docker.com/r/wcjiang/reference">docker</a> 快捷部署 web 版。</p>
</div></div><div class="h2wrap-body"></div></div></div></div><footer class="footer-wrap"><footer class="max-container">© 2022 Kenny Wang. Updated on 2022/11/18 16:36:45</footer></footer><script>
</div></div><div class="h2wrap-body"></div></div></div></div><footer class="footer-wrap"><footer class="max-container">© 2022 Kenny Wang. Updated on 2022/11/18 16:37:07</footer></footer><script>
if(('onhashchange' in window) && ((typeof document.documentMode==='undefined') || document.documentMode==8)) {
window.onhashchange = function () {
anchorPoint()