]> git.lizzy.rs Git - rust.git/commitdiff
fix ? expansion in comment
authorJorge Aparicio <japaricious@gmail.com>
Sat, 26 Mar 2016 17:10:05 +0000 (12:10 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Sat, 26 Mar 2016 17:10:05 +0000 (12:10 -0500)
src/test/run-pass/try-operator-hygiene.rs

index 233c03df4e57ee2243dc2ce30f3e90927d38cfad..ae622df498f94b108306a1d5f6dd587a0015acce 100644 (file)
@@ -12,7 +12,7 @@
 //
 // match expr {
 //     Ok(val) => val,
-//     Err(err) => return From::from(err),
+//     Err(err) => return Err(From::from(err)),
 // }
 //
 // This test verifies that the expansion is hygienic, i.e. it's not affected by other `val` and