Auto merge of #5905 - ErichDonGubler:patch-1, r=flip1995
docs: typo in `temporary_cstring_as_ptr`: s/point/&s changelog: none
This commit is contained in:
commit
8ecc0fc08a
@ -799,7 +799,7 @@ declare_clippy_lint! {
|
|||||||
/// call_some_ffi_func(c_str);
|
/// call_some_ffi_func(c_str);
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
/// Here `c_str` point to a freed address. The correct use would be:
|
/// Here `c_str` points to a freed address. The correct use would be:
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # use std::ffi::CString;
|
/// # use std::ffi::CString;
|
||||||
/// # fn call_some_ffi_func(_: *const i8) {}
|
/// # fn call_some_ffi_func(_: *const i8) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user