-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
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.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.