We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf0e22b + 99599db commit 023f72aCopy full SHA for 023f72a
library/alloc/src/ffi/c_str.rs
@@ -888,7 +888,7 @@ impl From<&CStr> for Arc<CStr> {
888
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
889
impl From<CString> for Rc<CStr> {
890
/// Converts a [`CString`] into an <code>[Rc]<[CStr]></code> by moving the [`CString`]
891
- /// data into a new [`Arc`] buffer.
+ /// data into a new [`Rc`] buffer.
892
#[inline]
893
fn from(s: CString) -> Rc<CStr> {
894
let rc: Rc<[u8]> = Rc::from(s.into_inner());
0 commit comments