Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Rust tips and tricks for newcomers
(
thesquareplanet.com
)
1 point
by
Jonhoo
on Oct 21, 2016
|
hide
|
past
|
favorite
|
2 comments
squiguy7
on Oct 21, 2016
[–]
In the first section "Returning values", you need a lifetime specifier like in this example: [1].
Thanks for sharing though, it's well written.
[1]:
https://is.gd/6azJ2J
Jonhoo
on Oct 21, 2016
|
parent
[–]
Good point -- it's not really relevant to the example that I'm using a borrow, so I changed it to a u64 instead.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Thanks for sharing though, it's well written.
[1]: https://is.gd/6azJ2J