Skip to content

Commit c43129f

Browse files
mahmoud-moursyMark-Simulacrum
authored andcommitted
Use implicit capture syntax in format_args
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
1 parent 700972b commit c43129f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/core_simd/examples/nbody.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ mod tests {
187187
fn main() {
188188
{
189189
let (energy_before, energy_after) = nbody::run(1000);
190-
println!("Energy before: {}", energy_before);
191-
println!("Energy after: {}", energy_after);
190+
println!("Energy before: {energy_before}");
191+
println!("Energy after: {energy_after}");
192192
}
193193
}

0 commit comments

Comments
 (0)