Skip to content

Commit c8db8ea

Browse files
committed
Remove spurious backticks detected by rustdoc::unescaped_backticks
There are only 3 cases across the crates rendered in the website (`core`, `alloc`, `std`, `proc_macro` and `test`), and they are all in `core`. Clean them up, so that the lint can be enabled in the next commit. Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 06a22c9 commit c8db8ea

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/src/ops/deref.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl<T: ?Sized> DerefMut for &mut T {
282282
/// FIXME(deref_patterns): The precise semantics are undecided; the rough idea is that
283283
/// successive calls to `deref`/`deref_mut` without intermediate mutation should be
284284
/// idempotent, in the sense that they return the same value as far as pattern-matching
285-
/// is concerned. Calls to `deref`/`deref_mut`` must leave the pointer itself likewise
285+
/// is concerned. Calls to `deref`/`deref_mut` must leave the pointer itself likewise
286286
/// unchanged.
287287
#[unstable(feature = "deref_pure_trait", issue = "87121")]
288288
#[lang = "deref_pure"]

core/src/ptr/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ where
786786
///
787787
/// The caller must also ensure that the memory the pointer (non-transitively) points to is never
788788
/// written to (except inside an `UnsafeCell`) using this pointer or any pointer derived from it. If
789-
/// you need to mutate the pointee, use [`from_mut`]`. Specifically, to turn a mutable reference `m:
789+
/// you need to mutate the pointee, use [`from_mut`]. Specifically, to turn a mutable reference `m:
790790
/// &mut T` into `*const T`, prefer `from_mut(m).cast_const()` to obtain a pointer that can later be
791791
/// used for mutation.
792792
///

core/src/slice/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3452,8 +3452,8 @@ impl<T> [T] {
34523452
/// elements of the slice move to the end while the last `k` elements move
34533453
/// to the front.
34543454
///
3455-
/// After calling `rotate_right`, the element previously at index `self.len()
3456-
/// - k` will become the first element in the slice.
3455+
/// After calling `rotate_right`, the element previously at index
3456+
/// `self.len() - k` will become the first element in the slice.
34573457
///
34583458
/// # Panics
34593459
///

0 commit comments

Comments
 (0)