about summary refs log tree commit diff
path: root/src/librustc_errors
diff options
context:
space:
mode:
authorOliver Schneider <oli-obk@users.noreply.github.com>2017-10-24 13:08:30 +0200
committerGitHub <noreply@github.com>2017-10-24 13:08:30 +0200
commit1ce1d99b2563bd1eba25bb831c97671d0b2347c2 (patch)
treea0285ce5cf75ab49ca56572fa4f9ff35429e612a /src/librustc_errors
parenta789fa0440214347e1bf6228fdb8fd36bf2f4520 (diff)
Update docs for Diagnostic::span_suggestion(s)
Diffstat (limited to 'src/librustc_errors')
-rw-r--r--src/librustc_errors/diagnostic.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_errors/diagnostic.rs b/src/librustc_errors/diagnostic.rs
index 02c0307e98c..f560622c297 100644
--- a/src/librustc_errors/diagnostic.rs
+++ b/src/librustc_errors/diagnostic.rs
@@ -229,6 +229,7 @@ impl Diagnostic {
     /// "try adding parentheses: `(tup.0).1`"
     ///
     /// The message
+    ///
     /// * should not end in any punctuation (a `:` is added automatically)
     /// * should not be a question
     /// * should not contain any parts like "the following", "as shown"
@@ -248,6 +249,7 @@ impl Diagnostic {
         self
     }
 
+    /// Prints out a message with multiple suggested edits of the code.
     pub fn span_suggestions(&mut self, sp: Span, msg: &str, suggestions: Vec<String>) -> &mut Self {
         self.suggestions.push(CodeSuggestion {
             substitution_parts: vec![Substitution {