Fix typos
This commit is contained in:
parent
717eb6ccea
commit
3fba948510
5 changed files with 9 additions and 9 deletions
|
@ -513,7 +513,7 @@ impl Emitter for SilentEmitter {
|
|||
/// Maximum number of lines we will print for a multiline suggestion; arbitrary.
|
||||
///
|
||||
/// This should be replaced with a more involved mechanism to output multiline suggestions that
|
||||
/// more closely mimmics the regular diagnostic output, where irrelevant code lines are elided.
|
||||
/// more closely mimics the regular diagnostic output, where irrelevant code lines are elided.
|
||||
pub const MAX_SUGGESTION_HIGHLIGHT_LINES: usize = 6;
|
||||
/// Maximum number of suggestions to be shown
|
||||
///
|
||||
|
@ -887,7 +887,7 @@ impl EmitterWriter {
|
|||
// or the next are vertical line placeholders.
|
||||
|| (annotation.takes_space() // If either this or the next annotation is
|
||||
&& next.has_label()) // multiline start/end, move it to a new line
|
||||
|| (annotation.has_label() // so as not to overlap the orizontal lines.
|
||||
|| (annotation.has_label() // so as not to overlap the horizontal lines.
|
||||
&& next.takes_space())
|
||||
|| (annotation.takes_space() && next.takes_space())
|
||||
|| (overlaps(next, annotation, l)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue