DEV Community

Discussion on: Rust #2: Lifetimes, Owners and Borrowers, OH MY!

Collapse
 
uj profile image
uj

I'm always happy to see explanations about these concepts that sometimes confuse people!
However I have a doubt regarding the Rust code example in "Uninitialised Data": I find it ambiguous, since you can totally do what is written, as long as you don't use a between initialization and assignation.
Maybe you could add a line showing that we try to use a before assignation?

Thanks for the article anyway!

Collapse
 
cthutu profile image
Matt Davies

Thanks for the feedback. I've edited the text to make that more clear.