Skip to content

Implementation of From on Rc incorrectly refers to Arc #113131

Closed
@claytonwramsey

Description

@claytonwramsey

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

No one assigned

    Labels

    A-docsArea: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions