Skip to content

Commit

Permalink
Automated deployment to GitHub Pages: 37f15d4
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 16, 2024
1 parent f6fe507 commit 042c98e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@

<h1 id='optional-data-gt-string-conversion' class='heading'>Optional Data -&gt; String Conversion</h1>

<p>Prefer failable <code>String(data:encoding:)</code> initializer when converting <code>Data</code> to <code>String</code></p>
<p>Prefer failable <code>String(bytes:encoding:)</code> initializer when converting <code>Data</code> to <code>String</code></p>

<ul>
<li><strong>Identifier:</strong> <code>optional_data_string_conversion</code></li>
Expand Down Expand Up @@ -398,6 +398,8 @@ <h1 id='optional-data-gt-string-conversion' class='heading'>Optional Data -&gt;
<h2 id='non-triggering-examples' class='heading'>Non Triggering Examples</h2>
<pre class="highlight swift"><code><span class="kt">String</span><span class="p">(</span><span class="nv">data</span><span class="p">:</span> <span class="n">data</span><span class="p">,</span> <span class="nv">encoding</span><span class="p">:</span> <span class="o">.</span><span class="n">utf8</span><span class="p">)</span>
</code></pre>
<pre class="highlight swift"><code><span class="kt">String</span><span class="p">(</span><span class="nv">bytes</span><span class="p">:</span> <span class="n">data</span><span class="p">,</span> <span class="nv">encoding</span><span class="p">:</span> <span class="o">.</span><span class="n">utf8</span><span class="p">)</span>
</code></pre>
<pre class="highlight swift"><code><span class="kt">String</span><span class="p">(</span><span class="kt">UTF8</span><span class="o">.</span><span class="k">self</span><span class="p">)</span>
</code></pre>
<pre class="highlight swift"><code><span class="kt">String</span><span class="p">(</span><span class="n">a</span><span class="p">,</span> <span class="n">b</span><span class="p">,</span> <span class="n">c</span><span class="p">,</span> <span class="kt">UTF8</span><span class="o">.</span><span class="k">self</span><span class="p">)</span>
Expand Down
Binary file modified docsets/SwiftLintCore.tgz
Binary file not shown.
4 changes: 3 additions & 1 deletion optional_data_string_conversion.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@

<h1 id='optional-data-gt-string-conversion' class='heading'>Optional Data -&gt; String Conversion</h1>

<p>Prefer failable <code>String(data:encoding:)</code> initializer when converting <code>Data</code> to <code>String</code></p>
<p>Prefer failable <code>String(bytes:encoding:)</code> initializer when converting <code>Data</code> to <code>String</code></p>

<ul>
<li><strong>Identifier:</strong> <code>optional_data_string_conversion</code></li>
Expand Down Expand Up @@ -398,6 +398,8 @@ <h1 id='optional-data-gt-string-conversion' class='heading'>Optional Data -&gt;
<h2 id='non-triggering-examples' class='heading'>Non Triggering Examples</h2>
<pre class="highlight swift"><code><span class="kt">String</span><span class="p">(</span><span class="nv">data</span><span class="p">:</span> <span class="n">data</span><span class="p">,</span> <span class="nv">encoding</span><span class="p">:</span> <span class="o">.</span><span class="n">utf8</span><span class="p">)</span>
</code></pre>
<pre class="highlight swift"><code><span class="kt">String</span><span class="p">(</span><span class="nv">bytes</span><span class="p">:</span> <span class="n">data</span><span class="p">,</span> <span class="nv">encoding</span><span class="p">:</span> <span class="o">.</span><span class="n">utf8</span><span class="p">)</span>
</code></pre>
<pre class="highlight swift"><code><span class="kt">String</span><span class="p">(</span><span class="kt">UTF8</span><span class="o">.</span><span class="k">self</span><span class="p">)</span>
</code></pre>
<pre class="highlight swift"><code><span class="kt">String</span><span class="p">(</span><span class="n">a</span><span class="p">,</span> <span class="n">b</span><span class="p">,</span> <span class="n">c</span><span class="p">,</span> <span class="kt">UTF8</span><span class="o">.</span><span class="k">self</span><span class="p">)</span>
Expand Down

0 comments on commit 042c98e

Please sign in to comment.