diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2017-09-29 23:38:33 -0700 |
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2017-09-29 23:42:24 -0700 |
| commit | d663003e034a50be8aa62f394d03ad594fcf2b3c (patch) | |
| tree | 4cbcee3d055a52eeabfba0f723ce429077181385 /src/librustc_errors | |
| parent | b7041bfab3a83702a8026fb7a18d8ea7d54cc648 (diff) | |
| download | rust-d663003e034a50be8aa62f394d03ad594fcf2b3c.tar.gz rust-d663003e034a50be8aa62f394d03ad594fcf2b3c.zip | |
fix comment typo, `CodeSuggestion` path in doc comment
`CodeSuggestion` doesn't live in the `diagnostic` module.
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/diagnostic.rs | 4 | ||||
| -rw-r--r-- | src/librustc_errors/emitter.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_errors/diagnostic.rs b/src/librustc_errors/diagnostic.rs index 9aae188f9ec..02c0307e98c 100644 --- a/src/librustc_errors/diagnostic.rs +++ b/src/librustc_errors/diagnostic.rs @@ -208,7 +208,7 @@ impl Diagnostic { /// Prints out a message with a suggested edit of the code. If the suggestion is presented /// inline it will only show the text message and not the text. /// - /// See `diagnostic::CodeSuggestion` for more information. + /// See `CodeSuggestion` for more information. pub fn span_suggestion_short(&mut self, sp: Span, msg: &str, suggestion: String) -> &mut Self { self.suggestions.push(CodeSuggestion { substitution_parts: vec![Substitution { @@ -235,7 +235,7 @@ impl Diagnostic { /// * may look like "to do xyz, use" or "to do xyz, use abc" /// * may contain a name of a function, variable or type, but not whole expressions /// - /// See `diagnostic::CodeSuggestion` for more information. + /// See `CodeSuggestion` for more information. pub fn span_suggestion(&mut self, sp: Span, msg: &str, suggestion: String) -> &mut Self { self.suggestions.push(CodeSuggestion { substitution_parts: vec![Substitution { diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index daa132dbf62..2f994de396c 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -48,7 +48,7 @@ impl Emitter for EmitterWriter { sugg.substitution_parts[0].substitutions[0].find('\n').is_none() { let substitution = &sugg.substitution_parts[0].substitutions[0]; let msg = if substitution.len() == 0 || !sugg.show_code_when_inline { - // This substitution is only removal or we explicitely don't want to show the + // This substitution is only removal or we explicitly don't want to show the // code inline, don't show it format!("help: {}", sugg.msg) } else { |
