mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-09-28 17:53:28 +00:00
Clarify hint of vecs1
A user got confused, thinking the two described methods are the *only* ones. Calling them "basic" makes clear there are other (non-basic) ones. discussed in: https://github.com/rust-lang/rustlings/discussions/2419
This commit is contained in:
@@ -304,7 +304,7 @@ Now, you have another tool in your toolbox!"""
|
||||
name = "vecs1"
|
||||
dir = "05_vecs"
|
||||
hint = """
|
||||
In Rust, there are two ways to define a Vector.
|
||||
In Rust, there are two basic ways to define a Vector.
|
||||
1. One way is to use the `Vec::new()` function to create a new vector
|
||||
and fill it with the `push()` method.
|
||||
2. The second way is to use the `vec![]` macro and define your elements
|
||||
|
||||
Reference in New Issue
Block a user