Skip to content

&str->String in the docs #63797

Closed
Closed
@axil

Description

@axil

This chunk was supposedly copy-pasted as is from std::str::from_utf8

rust/src/liballoc/string.rs

Lines 430 to 432 in bdfd698

/// Converts a vector of bytes to a `String`.
///
/// A string slice ([`&str`]) is made of bytes ([`u8`]), and a vector of bytes

It should read

A String ([`String`]) is made of bytes

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