Fix lines over 80 columns.

This commit is contained in:
Sébastien Duquette 2018-08-23 00:23:03 -04:00 committed by Who? Me?!
parent f06248e4ef
commit 399e53b8c6
2 changed files with 7 additions and 6 deletions

View File

@ -11,9 +11,9 @@ HIR and MIR, allowing for more informative error reporting.
[span]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/source_map/struct.Span.html [span]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/source_map/struct.Span.html
A `Span` can be looked up in a [`SourceMap`][sourcemap] to get a "snippet" useful A `Span` can be looked up in a [`SourceMap`][sourcemap] to get a "snippet"
for displaying errors with [`span_to_snippet`][sptosnip] and other similar useful for displaying errors with [`span_to_snippet`][sptosnip] and other
methods on the `SourceMap`. similar methods on the `SourceMap`.
[sourcemap]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/source_map/struct.SourceMap.html [sourcemap]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/source_map/struct.SourceMap.html
[sptosnip]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/source_map/struct.SourceMap.html#method.span_to_snippet [sptosnip]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/source_map/struct.SourceMap.html#method.span_to_snippet

View File

@ -23,9 +23,10 @@ The `syntax` crate contains several main players,
nodes. nodes.
The main entrypoint to the parser is via the various `parse_*` functions in the The main entrypoint to the parser is via the various `parse_*` functions in the
[parser module]. They let you do things like turn a [`SourceFile`][sourcefile] (e.g. [parser module]. They let you do things like turn a [`SourceFile`][sourcefile]
the source in a single file) into a token stream, create a parser from the (e.g. the source in a single file) into a token stream, create a parser from
token stream, and then execute the parser to get a `Crate` (the root AST node). the token stream, and then execute the parser to get a `Crate` (the root AST
node).
To minimise the amount of copying that is done, both the `StringReader` and To minimise the amount of copying that is done, both the `StringReader` and
`Parser` have lifetimes which bind them to the parent `ParseSess`. This contains `Parser` have lifetimes which bind them to the parent `ParseSess`. This contains