Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vecs1: add hint for to_vec() #1591

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

RogerJL
Copy link

@RogerJL RogerJL commented Jul 6, 2023

It actually only case 2 that fulfils the excersise instruction
to use macro...

It actually only case 2 that fulfils the excersise instruction
to use macro...
@shadows-withal
Copy link
Member

hmm, I disagree, to_vec doesn't define a vec, it copies into a vec. I don't think that's the solution we should hint at here, but it could be something we encourage users to try out in addition (something like "By the way, there's also a way to convert the array into a Vec directly, without having to specify its values again. Can you find out what it is?"

@RogerJL
Copy link
Author

RogerJL commented Sep 9, 2023

But to_vec also define a vector...
The vector did not exist before this method is called.

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.

None yet

2 participants