diff options
| author | mo8it <mo8it@proton.me> | 2024-06-20 01:00:06 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-06-20 01:00:06 +0200 |
| commit | a9f0c7bf1f00ab19733953d3121d462eede34466 (patch) | |
| tree | b3530b0852f509b866cb9a4f8fbdc2bd3b2bff58 /rustlings-macros/info.toml | |
| parent | 0abcdeed42957ca805a3a7475fb3f14085af346e (diff) | |
vecs1 solution
Diffstat (limited to 'rustlings-macros/info.toml')
| -rw-r--r-- | rustlings-macros/info.toml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml index cd85dcc..21a27dd 100644 --- a/rustlings-macros/info.toml +++ b/rustlings-macros/info.toml @@ -307,8 +307,9 @@ hint = """ In Rust, there are two 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, which is simpler is to use the `vec![]` macro and - define your elements inside the square brackets. +2. The second way is to use the `vec![]` macro and define your elements + inside the square brackets. This way is simpler when you exactly know + the initial values. Check this chapter: https://doc.rust-lang.org/stable/book/ch08-01-vectors.html of the Rust book to learn more. |
