Skip to content

Redesign vec1 to avoid confusing array literal#2397

Merged
senekor merged 2 commits into
mainfrom
senekor/onvlpnlyoqww
May 14, 2026
Merged

Redesign vec1 to avoid confusing array literal#2397
senekor merged 2 commits into
mainfrom
senekor/onvlpnlyoqww

Conversation

@senekor
Copy link
Copy Markdown
Contributor

@senekor senekor commented May 14, 2026

Learners were sometimes confused by the literal array. Their assumption was that they are supposed to convert the array to a vector. Duplicating the literal elements was not an intuitive solution.

This redesign avoids putting an identical array literal near the place where learners are supposed to use the vec! macro.

Learners were sometimes confused by the literal array. Their assumption
was that they are supposed to convert the array to a vector. Duplicating
the literal elements was not an intuitive solution.

This redesign avoids putting an identical array literal near the place
where learners are supposed to use the vec! macro.
@senekor senekor linked an issue May 14, 2026 that may be closed by this pull request
Comment thread exercises/05_vecs/vecs1.rs Outdated
@mo8it
Copy link
Copy Markdown
Contributor

mo8it commented May 14, 2026

I can confirm that some users tried to covert it. It is much better now. You can merge after clarifying the required order.

Co-authored-by: Mo Bitar <76752051+mo8it@users.noreply.github.com>
@senekor senekor merged commit 9b50da4 into main May 14, 2026
7 checks passed
@senekor senekor deleted the senekor/onvlpnlyoqww branch May 14, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

exercises/05_vecs/vecs1.rs: TODO clarification

2 participants