Use rust they said… It's awesome they said…

I never failed so hard on merging two strings together in any other language…, even C is trivial here by using the strcpy. Not without danger, but trivial.

Maybe someone has mercy and can explain my what I'm doing wrong? 😥

#rust #frustration


@r3pek @sheogorath You've made two mistakes in the result definition. "" is "&'static str" not String. And it has to be mutable for "+ &str" to work.


Thank you so much! That was a kind of weird situation I was in there .-. This explanation makes it clear.


Sign in to participate in the conversation

Exclusive or something