Skip to content

Commit fdd1a62

Browse files
author
Alexander Regueiro
committed
Added backticks for one diagnostic message.
1 parent d938a80 commit fdd1a62

File tree

1 file changed

+1
-1
lines changed
  • src/libsyntax/parse/lexer

1 file changed

+1
-1
lines changed

src/libsyntax/parse/lexer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<'a> StringReader<'a> {
4747
source_file: Lrc<syntax_pos::SourceFile>,
4848
override_span: Option<Span>) -> Self {
4949
if source_file.src.is_none() {
50-
sess.span_diagnostic.bug(&format!("Cannot lex source_file without source: {}",
50+
sess.span_diagnostic.bug(&format!("cannot lex `source_file` without source: {}",
5151
source_file.name));
5252
}
5353

0 commit comments

Comments
 (0)