Skip to content

Commit

Permalink
back-ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenny222 committed May 9, 2013
1 parent ca95e7f commit e323033
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3310,7 +3310,7 @@ pub impl Parser {
}
}
if fields.len() == 0 {
self.fatal(fmt!("Unit-like struct should be written as: struct %s;",
self.fatal(fmt!("Unit-like struct should be written as `struct %s;`",
*self.interner.get(class_name)));
}
self.bump();
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/struct-no-fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

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

fn main() {}

5 comments on commit e323033

@bors
Copy link
Contributor

@bors bors commented on e323033 May 9, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on e323033 May 9, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging kud1ing/rust/fixes = e323033 into auto

@bors
Copy link
Contributor

@bors bors commented on e323033 May 9, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kud1ing/rust/fixes = e323033 merged ok, testing candidate = 4757a58

@bors
Copy link
Contributor

@bors bors commented on e323033 May 9, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on e323033 May 9, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = 4757a58

Please sign in to comment.