Skip to content

Commit 9b11be7

Browse files
committed
Fix copy-paste error
1 parent 5446e73 commit 9b11be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/write_literal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn main() {
1111
writeln!(&mut v, "Hello");
1212
let world = "world";
1313
writeln!(&mut v, "Hello {}", world);
14-
writeln!(&mut v, "Hello {world}", world);
14+
writeln!(&mut v, "Hello {world}", world=world);
1515
writeln!(&mut v, "3 in hex is {:X}", 3);
1616
writeln!(&mut v, "2 + 1 = {:.4}", 3);
1717
writeln!(&mut v, "2 + 1 = {:5.4}", 3);

0 commit comments

Comments
 (0)