From 925321705edd96b39995f77edf437f7db6f9b16a Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Wed, 8 Jul 2026 10:05:45 +0200 Subject: [PATCH] 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 --- rustlings-macros/info.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml index a4c72c124a..3a1cac3537 100644 --- a/rustlings-macros/info.toml +++ b/rustlings-macros/info.toml @@ -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