Remove extraneous `'s in {wrong,crosspointer}_transmute examples
This commit is contained in:
parent
78b141d937
commit
c9c649b315
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ use utils::{opt_def_id, sugg};
|
|||
///
|
||||
/// **Example:**
|
||||
/// ```rust
|
||||
/// let ptr: *const T = core::intrinsics::transmute('x')`
|
||||
/// let ptr: *const T = core::intrinsics::transmute('x')
|
||||
/// ```
|
||||
declare_clippy_lint! {
|
||||
pub WRONG_TRANSMUTE,
|
||||
|
@ -51,7 +51,7 @@ declare_clippy_lint! {
|
|||
///
|
||||
/// **Example:**
|
||||
/// ```rust
|
||||
/// core::intrinsics::transmute(t)` // where the result type is the same as
|
||||
/// core::intrinsics::transmute(t) // where the result type is the same as
|
||||
/// // `*t` or `&t`'s
|
||||
/// ```
|
||||
declare_clippy_lint! {
|
||||
|
|
Loading…
Reference in a new issue