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:
bors 2020-08-13 19:54:48 +00:00
commit 8ecc0fc08a

View File

@ -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) {}