Skip to content

Commit c345de3

Browse files
zackmdavismark-i-m
authored andcommitted
"easier" → "more informative"; omit needless clause
We don't want to leave the impression that spans are about making it easier for compiler developers to perform the arduous task of emitting an error; spans are about pointing to particular segments of code in the emitted error messages. Also, we don't need to say "whenever an error comes up"; that's implied by the phrase "error reporting."
1 parent 14ef432 commit c345de3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This chapter is about how to emit compile errors and lints from the compiler.
77

88
[`Span`][span] is the primary data structure in `rustc` used to represent a
99
___location in the code being compiled. `Span`s are attached to most constructs in
10-
HIR and MIR, allowing for easier error reporting whenever an error comes up.
10+
HIR and MIR, allowing for more informative error reporting.
1111

1212
[span]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/codemap/struct.Span.html
1313

0 commit comments

Comments
 (0)