Closed
Description
Location
The documentation of impl From<CString> for Rc<CStr>
writes the following:
Converts a CString into an Rc<CStr> by moving the CString data into a new Arc buffer.
Summary
A quick peek at the implementation of From<CString> for Rc<CStr
shows that it uses an Rc
as the backing allocation, not an Arc
. My guess is that this documentation was copy-pasted from the implementation on Arc
and never edited.
The correct revision (if I understand the implementation correctly) would be to substitute Arc
for Rc
in the documentation.