Skip to content

Commit 55e5a8a

Browse files
pickfiremark-i-m
authored andcommitted
Fix typo
1 parent 0930e77 commit 55e5a8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diagnostics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ let mut err = sess.struct_span_err(sp, "oh no! this is an error!");
6060
6161
if let Ok(snippet) = sess.source_map().span_to_snippet(sp) {
6262
// Use the snippet to generate a suggested fix
63-
err.span_suggestion(suggestion_sp, "try using a qux here", format!("qux {}", snip));
63+
err.span_suggestion(suggestion_sp, "try using a qux here", format!("qux {}", snippet));
6464
} else {
6565
// If we weren't able to generate a snippet, then emit a "help" message
6666
// instead of a concrete "suggestion". In practice this is unlikely to be
@@ -100,7 +100,7 @@ if let Ok(snippet) = sess.source_map().span_to_snippet(sp) {
100100
err.span_suggestion(
101101
suggestion_sp,
102102
"try using a qux here",
103-
format!("qux {}", snip),
103+
format!("qux {}", snippet),
104104
Applicability::MachineApplicable,
105105
);
106106
} else {

0 commit comments

Comments
 (0)