Remove extraneous `'s in {wrong,crosspointer}_transmute examples

This commit is contained in:
Nathan 2018-04-27 02:43:16 -04:00 committed by GitHub
parent 78b141d937
commit c9c649b315
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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! {