Skip to content

Commit a7a0d88

Browse files
committed
deploy: f0e8d44
1 parent 21881ec commit a7a0d88

File tree

9 files changed

+99
-11
lines changed

9 files changed

+99
-11
lines changed

dev/implementors/core/clone/trait.Clone.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/implementors/core/fmt/trait.Debug.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/src/uu_nl/nl.rs.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@
376376
<a href="#376" id="376">376</a>
377377
<a href="#377" id="377">377</a>
378378
<a href="#378" id="378">378</a>
379+
<a href="#379" id="379">379</a>
380+
<a href="#380" id="380">380</a>
381+
<a href="#381" id="381">381</a>
379382
</pre></div><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
380383
// *
381384
// * (c) Tobias Bohumir Schottdorf &lt;tobias.schottdorf@gmail.com&gt;
@@ -722,7 +725,10 @@
722725
line
723726
);
724727
<span class="comment">// update line number for the potential next line
725-
</span>line_no += settings.line_increment;
728+
</span><span class="kw">match </span>line_no.checked_add(settings.line_increment) {
729+
<span class="prelude-val">Some</span>(new_line_no) =&gt; line_no = new_line_no,
730+
<span class="prelude-val">None </span>=&gt; <span class="kw">return </span><span class="prelude-val">Err</span>(USimpleError::new(<span class="number">1</span>, <span class="string">&quot;line number overflow&quot;</span>)),
731+
}
726732
} <span class="kw">else </span>{
727733
<span class="kw">let </span>spaces = <span class="string">&quot; &quot;</span>.repeat(settings.number_width + <span class="number">1</span>);
728734
<span class="macro">println!</span>(<span class="string">&quot;{spaces}{line}&quot;</span>);

0 commit comments

Comments
 (0)