When they say @rustlang is very difficult to start with, I couldn't imagine I would spend a whole day to learn how to create a function that returns a string reference.
Ah okay. Haven’t read that one, but the official books covers strings really early, so was wondering if there was something we could improve there!
-
-
The problem was not about the strings. It was about creating an &str reference inside a function and returning it. I had to deal with a lot of "intermediate value does not live long enough"
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.