Skip to content

Commit c1d24c3

Browse files
committed
deploy: 2ed80ff
1 parent c50b89e commit c1d24c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/src/uu_expr/expr.rs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160

161161
<span class="kw">fn </span>print_expr_ok(expr_result: <span class="kw-2">&amp;</span>str) -&gt; UResult&lt;()&gt; {
162162
<span class="macro">println!</span>(<span class="string">&quot;{}&quot;</span>, expr_result);
163-
<span class="kw">if </span>expr_result == <span class="string">&quot;0&quot; </span>|| expr_result.is_empty() {
163+
<span class="kw">if </span>expr_result.parse::&lt;i32&gt;() == <span class="prelude-val">Ok</span>(<span class="number">0</span>) || expr_result.is_empty() {
164164
<span class="prelude-val">Err</span>(<span class="number">1</span>.into())
165165
} <span class="kw">else </span>{
166166
<span class="prelude-val">Ok</span>(())

dev/src/uu_expr/syntax_tree.rs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@
10031003
<span class="kw">for </span>(current_idx, ch_h) <span class="kw">in </span>haystack.chars().enumerate() {
10041004
<span class="kw">for </span>ch_n <span class="kw">in </span>needles.chars() {
10051005
<span class="kw">if </span>ch_n == ch_h {
1006-
<span class="kw">return </span>current_idx.to_string();
1006+
<span class="kw">return </span>(current_idx + <span class="number">1</span>).to_string();
10071007
}
10081008
}
10091009
}

0 commit comments

Comments
 (0)