Skip to content

Commit 414d329

Browse files
author
Lukas Markeffsky
committed
library: Fix bugs found by rustdoc::unescaped_backtick
1 parent da3e0af commit 414d329

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

library/core/src/intrinsics/mir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
//! another function. The `dialect` and `phase` parameters indicate which [version of MIR][dialect
4343
//! docs] you are inserting here. Generally you'll want to use `#![custom_mir(dialect = "built")]`
4444
//! if you want your MIR to be modified by the full MIR pipeline, or `#![custom_mir(dialect =
45-
//! "runtime", phase = "optimized")] if you don't.
45+
//! "runtime", phase = "optimized")]` if you don't.
4646
//!
4747
//! [dialect docs]:
4848
//! https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/enum.MirPhase.html

library/core/src/ptr/alignment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl Alignment {
4242
/// Returns the alignment for a type.
4343
///
4444
/// This provides the same numerical value as [`mem::align_of`],
45-
/// but in an `Alignment` instead of a `usize.
45+
/// but in an `Alignment` instead of a `usize`.
4646
#[unstable(feature = "ptr_alignment_type", issue = "102070")]
4747
#[inline]
4848
pub const fn of<T>() -> Self {

library/std/src/sys_common/wtf8.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ impl Wtf8 {
594594
}
595595

596596
/// Returns the code point at `position` if it is in the ASCII range,
597-
/// or `b'\xFF' otherwise.
597+
/// or `b'\xFF'` otherwise.
598598
///
599599
/// # Panics
600600
///

library/test/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ fn make_owned_test(test: &&TestDescAndFn) -> TestDescAndFn {
203203
}
204204
}
205205

206-
/// Invoked when unit tests terminate. Returns `Result::Err` if the test is
207-
/// considered a failure. By default, invokes `report() and checks for a `0`
208-
/// result.
206+
/// Invoked when unit tests terminate. Returns [`Result::Err`] if the test is
207+
/// considered a failure. By default, invokes [`Termination::report`] and checks
208+
/// for a `0` result.
209209
pub fn assert_test_result<T: Termination>(result: T) -> Result<(), String> {
210210
let code = result.report().to_i32();
211211
if code == 0 {

0 commit comments

Comments
 (0)