diff options
| author | bors <bors@rust-lang.org> | 2019-09-19 22:41:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-09-19 22:41:46 +0000 |
| commit | 53b352edb6f441bc3cf5386806fcc4686f275130 (patch) | |
| tree | d80f5e453cbd58d0a450a6acea1f9555cd643ecb /src/libsyntax | |
| parent | 9b9d2aff8de4d499b4ba7ca406e000f8d3754ea7 (diff) | |
| parent | 99cbffb15fd0e17ee27c1e161a6b1e37215c514b (diff) | |
| download | rust-53b352edb6f441bc3cf5386806fcc4686f275130.tar.gz rust-53b352edb6f441bc3cf5386806fcc4686f275130.zip | |
Auto merge of #64616 - Centril:rollup-du6728f, r=Centril
Rollup of 6 pull requests Successful merges: - #63448 (fix Miri discriminant handling) - #64592 (Point at original span when emitting unreachable lint) - #64601 (Fix backticks in documentation) - #64606 (Remove unnecessary `mut` in doc example) - #64611 (rustbuild: Don't package libstd twice) - #64613 (rustbuild: Copy crate doc files fewer times) Failed merges: r? @ghost
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/source_map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/source_map.rs b/src/libsyntax/source_map.rs index d7ea799e004..7d0d2392945 100644 --- a/src/libsyntax/source_map.rs +++ b/src/libsyntax/source_map.rs @@ -3,7 +3,7 @@ //! of source parsed during crate parsing (typically files, in-memory strings, //! or various bits of macro expansion) cover a continuous range of bytes in the //! `SourceMap` and are represented by `SourceFile`s. Byte positions are stored in -//! `Span`` and used pervasively in the compiler. They are absolute positions +//! `Span` and used pervasively in the compiler. They are absolute positions //! within the `SourceMap`, which upon request can be converted to line and column //! information, source code snippets, etc. @@ -645,7 +645,7 @@ impl SourceMap { } /// Given a `Span`, tries to get a shorter span ending before the first occurrence of `char` - /// ``c`. + /// `c`. pub fn span_until_char(&self, sp: Span, c: char) -> Span { match self.span_to_snippet(sp) { Ok(snippet) => { |
