Skip to content

Commit 450a42a

Browse files
committed
wording
1 parent 6c02619 commit 450a42a

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

rust_underscore_vars.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ <h2 id="the-difference">
189189
<span class="line-number"></span><span class="code-hl"> |</span>
190190
</code></pre>
191191
<p>The two important parts are: <code>this lock is not assigned to a binding and is immediately dropped</code> and <code>consider binding to an unused variable to avoid immediately dropping the value</code>.</p>
192-
<p>I was not aware of the difference between <code>_</code> and <code>_unused</code>. In fact I went through the <a href="https://doc.rust-lang.org/reference/destructors.html">Rust reference</a> and I did not find anything about this.</p>
192+
<p>I was not aware of the difference between <code>_</code> and <code>_unused</code>. In fact I went through the <a href="https://doc.rust-lang.org/reference/destructors.html">Rust reference</a> and I did not find anything about this (perhaps I missed it?).</p>
193193
<p>This is the code that the compiler generates for <code>_</code>, conceptually:</p>
194194
<pre>
195195
<div class="code-header">

rust_underscore_vars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ help: consider binding to an unused variable to avoid immediately dropping the v
9090

9191
The two important parts are: `this lock is not assigned to a binding and is immediately dropped` and `consider binding to an unused variable to avoid immediately dropping the value`.
9292

93-
I was not aware of the difference between `_` and `_unused`. In fact I went through the [Rust reference](https://doc.rust-lang.org/reference/destructors.html) and I did not find anything about this.
93+
I was not aware of the difference between `_` and `_unused`. In fact I went through the [Rust reference](https://doc.rust-lang.org/reference/destructors.html) and I did not find anything about this (perhaps I missed it?).
9494

9595
This is the code that the compiler generates for `_`, conceptually:
9696

search_index.postcard

24 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)