Skip to content

Commit c9c649b

Browse files
authored
Remove extraneous `'s in {wrong,crosspointer}_transmute examples
1 parent 78b141d commit c9c649b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/transmute.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use utils::{opt_def_id, sugg};
1616
///
1717
/// **Example:**
1818
/// ```rust
19-
/// let ptr: *const T = core::intrinsics::transmute('x')`
19+
/// let ptr: *const T = core::intrinsics::transmute('x')
2020
/// ```
2121
declare_clippy_lint! {
2222
pub WRONG_TRANSMUTE,
@@ -51,7 +51,7 @@ declare_clippy_lint! {
5151
///
5252
/// **Example:**
5353
/// ```rust
54-
/// core::intrinsics::transmute(t)` // where the result type is the same as
54+
/// core::intrinsics::transmute(t) // where the result type is the same as
5555
/// // `*t` or `&t`'s
5656
/// ```
5757
declare_clippy_lint! {

0 commit comments

Comments
 (0)