diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-02 23:30:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-02 23:30:46 +0200 |
| commit | 023f72ad5bd02feb0a34f3076486f9da53753017 (patch) | |
| tree | 65a928af53671ad2b48302e2e2a83f95051dc09e | |
| parent | bf0e22b298e282dec3589f70c67e401588d6c693 (diff) | |
| parent | 99599db8f01dac55f7e29e447480aa9ad566c122 (diff) | |
| download | rust-023f72ad5bd02feb0a34f3076486f9da53753017.tar.gz rust-023f72ad5bd02feb0a34f3076486f9da53753017.zip | |
Rollup merge of #113253 - nurmukhametdaniyar:rc_from_cstr_doc_fix, r=Nilstrieb
Fixed documentation of from<CString> for Rc<CStr>: Arc -> Rc Fix #113131
| -rw-r--r-- | library/alloc/src/ffi/c_str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/ffi/c_str.rs b/library/alloc/src/ffi/c_str.rs index f99395c72aa..62856fc9a49 100644 --- a/library/alloc/src/ffi/c_str.rs +++ b/library/alloc/src/ffi/c_str.rs @@ -888,7 +888,7 @@ impl From<&CStr> for Arc<CStr> { #[stable(feature = "shared_from_slice2", since = "1.24.0")] impl From<CString> for Rc<CStr> { /// Converts a [`CString`] into an <code>[Rc]<[CStr]></code> by moving the [`CString`] - /// data into a new [`Arc`] buffer. + /// data into a new [`Rc`] buffer. #[inline] fn from(s: CString) -> Rc<CStr> { let rc: Rc<[u8]> = Rc::from(s.into_inner()); |
