]> git.lizzy.rs Git - rust.git/commitdiff
Fix copy-paste error
authorThomas Gideon <cmdln@thecommandline.net>
Wed, 25 Jul 2018 22:14:11 +0000 (18:14 -0400)
committerThomas Gideon <cmdln@thecommandline.net>
Wed, 25 Jul 2018 22:14:11 +0000 (18:14 -0400)
tests/ui/write_literal.rs

index fe1f83a2790cceb74124d20077f2e86886fe60fd..48dfcd0ea3e11d9d3fa7326a16971f0fb0edfcc2 100644 (file)
@@ -11,7 +11,7 @@ fn main() {
     writeln!(&mut v, "Hello");
     let world = "world";
     writeln!(&mut v, "Hello {}", world);
-    writeln!(&mut v, "Hello {world}", world);
+    writeln!(&mut v, "Hello {world}", world=world);
     writeln!(&mut v, "3 in hex is {:X}", 3);
     writeln!(&mut v, "2 + 1 = {:.4}", 3);
     writeln!(&mut v, "2 + 1 = {:5.4}", 3);