Skip to content

exercises/05_vecs/vecs1.rs: TODO clarification #2194

Open
@hikojlu

Description

@hikojlu

exercises/05_vecs/vecs1.rs:

let a = [10, 20, 30, 40];
// TODO: Create a vector called `v` which contains the exact same elements as in the array `a`
// Use the vector macro

vec! macro can only be used like this: vec![10, 20, 30, 40].
Is it intended to be like this? I guess, it would make more sense to use Vec::from(a)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions