Skip to content

Commit 023f72a

Browse files
authored
Rollup merge of #113253 - nurmukhametdaniyar:rc_from_cstr_doc_fix, r=Nilstrieb
Fixed documentation of from<CString> for Rc<CStr>: Arc -> Rc Fix #113131
2 parents bf0e22b + 99599db commit 023f72a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/ffi/c_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ impl From<&CStr> for Arc<CStr> {
888888
#[stable(feature = "shared_from_slice2", since = "1.24.0")]
889889
impl From<CString> for Rc<CStr> {
890890
/// Converts a [`CString`] into an <code>[Rc]<[CStr]></code> by moving the [`CString`]
891-
/// data into a new [`Arc`] buffer.
891+
/// data into a new [`Rc`] buffer.
892892
#[inline]
893893
fn from(s: CString) -> Rc<CStr> {
894894
let rc: Rc<[u8]> = Rc::from(s.into_inner());

0 commit comments

Comments
 (0)