Skip to content

Unclear vector/slice comparison in section 2.12 of docs #24070

Closed
@maxbrunsfeld

Description

@maxbrunsfeld

Thanks for creating such readable docs!

When vectors are introduced in section 2.12, an analogy is made involving slices:

Vectors are to slices what String is to &str.

But I don't think slices have been introduced yet; they're introduced later in that section:

A slice is a reference to (or "view" into) an array.

Maybe the first quote should compare vectors to arrays, rather than slices?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions