Skip to content

Commit 37bafea

Browse files
committed
Fix backticks in documentation
1 parent eceec57 commit 37bafea

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/librustc/middle/region.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ fn resolve_local<'tcx>(
11361136
// Rule A. `let (ref x, ref y) = (foo().x, 44)`. The rvalue `(22, 44)`
11371137
// would have an extended lifetime, but not `foo()`.
11381138
//
1139-
// Rule B. `let x = &foo().x`. The rvalue ``foo()` would have extended
1139+
// Rule B. `let x = &foo().x`. The rvalue `foo()` would have extended
11401140
// lifetime.
11411141
//
11421142
// In some cases, multiple rules may apply (though not to the same

src/librustc/ty/query/on_disk_cache.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ impl<'a, 'tcx> SpecializedDecoder<DefIndex> for CacheDecoder<'a, 'tcx> {
643643

644644
// Both the `CrateNum` and the `DefIndex` of a `DefId` can change in between two
645645
// compilation sessions. We use the `DefPathHash`, which is stable across
646-
// sessions, to map the old DefId`` to the new one.
646+
// sessions, to map the old `DefId` to the new one.
647647
impl<'a, 'tcx> SpecializedDecoder<DefId> for CacheDecoder<'a, 'tcx> {
648648
#[inline]
649649
fn specialized_decode(&mut self) -> Result<DefId, Self::Error> {

src/libsyntax/source_map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! of source parsed during crate parsing (typically files, in-memory strings,
44
//! or various bits of macro expansion) cover a continuous range of bytes in the
55
//! `SourceMap` and are represented by `SourceFile`s. Byte positions are stored in
6-
//! `Span`` and used pervasively in the compiler. They are absolute positions
6+
//! `Span` and used pervasively in the compiler. They are absolute positions
77
//! within the `SourceMap`, which upon request can be converted to line and column
88
//! information, source code snippets, etc.
99
@@ -645,7 +645,7 @@ impl SourceMap {
645645
}
646646

647647
/// Given a `Span`, tries to get a shorter span ending before the first occurrence of `char`
648-
/// ``c`.
648+
/// `c`.
649649
pub fn span_until_char(&self, sp: Span, c: char) -> Span {
650650
match self.span_to_snippet(sp) {
651651
Ok(snippet) => {

src/test/ui/borrowck/two-phase-surprise-no-conflict.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl <'a> SpanlessHash<'a> {
3131
//
3232
// Not okay without two-phase borrows: the implicit
3333
// `&mut self` of the receiver is evaluated first, and
34-
// that conflicts with the `self.cx`` access during
34+
// that conflicts with the `self.cx` access during
3535
// argument evaluation, as demonstrated in `fn demo`
3636
// above.
3737
//

0 commit comments

Comments
 (0)