about summary refs log tree commit diff
path: root/src/test/run-pass/struct-pattern-matching.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/struct-pattern-matching.rs')
-rw-r--r--src/test/run-pass/struct-pattern-matching.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/struct-pattern-matching.rs b/src/test/run-pass/struct-pattern-matching.rs
index 68fa1373975..3d8c2b7f56a 100644
--- a/src/test/run-pass/struct-pattern-matching.rs
+++ b/src/test/run-pass/struct-pattern-matching.rs
@@ -16,6 +16,6 @@ struct Foo {
 pub fn main() {
     let a = Foo { x: 1, y: 2 };
     match a {
-        Foo { x: x, y: y } => println(fmt!("yes, %d, %d", x, y))
+        Foo { x: x, y: y } => printfln!("yes, %d, %d", x, y)
     }
 }