Skip to content

Commit a28a4cf

Browse files
eksemark-i-m
authored andcommitted
Fix lines over 80 columns.
1 parent 3aa1347 commit a28a4cf

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/diag.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ HIR and MIR, allowing for more informative error reporting.
1111

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

14-
A `Span` can be looked up in a [`SourceMap`][sourcemap] to get a "snippet" useful
15-
for displaying errors with [`span_to_snippet`][sptosnip] and other similar
16-
methods on the `SourceMap`.
14+
A `Span` can be looked up in a [`SourceMap`][sourcemap] to get a "snippet"
15+
useful for displaying errors with [`span_to_snippet`][sptosnip] and other
16+
similar methods on the `SourceMap`.
1717

1818
[sourcemap]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/source_map/struct.SourceMap.html
1919
[sptosnip]: https://doc.rust-lang.org/nightly/nightly-rustc/syntax/source_map/struct.SourceMap.html#method.span_to_snippet

src/the-parser.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ The `syntax` crate contains several main players,
2323
nodes.
2424

2525
The main entrypoint to the parser is via the various `parse_*` functions in the
26-
[parser module]. They let you do things like turn a [`SourceFile`][sourcefile] (e.g.
27-
the source in a single file) into a token stream, create a parser from the
28-
token stream, and then execute the parser to get a `Crate` (the root AST node).
26+
[parser module]. They let you do things like turn a [`SourceFile`][sourcefile]
27+
(e.g. the source in a single file) into a token stream, create a parser from
28+
the token stream, and then execute the parser to get a `Crate` (the root AST
29+
node).
2930

3031
To minimise the amount of copying that is done, both the `StringReader` and
3132
`Parser` have lifetimes which bind them to the parent `ParseSess`. This contains

0 commit comments

Comments
 (0)