Skip to content

Commit e323033

Browse files
author
Lenny222
committed
back-ticks
1 parent ca95e7f commit e323033

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libsyntax/parse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3310,7 +3310,7 @@ pub impl Parser {
33103310
}
33113311
}
33123312
if fields.len() == 0 {
3313-
self.fatal(fmt!("Unit-like struct should be written as: struct %s;",
3313+
self.fatal(fmt!("Unit-like struct should be written as `struct %s;`",
33143314
*self.interner.get(class_name)));
33153315
}
33163316
self.bump();

src/test/compile-fail/struct-no-fields.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern: Unit-like struct should be written as: struct Foo;
11+
// error-pattern: Unit-like struct should be written as `struct Foo;`
1212
struct Foo {}
1313

1414
fn main() {}

0 commit comments

Comments
 (0)