2 comments

[ 3.2 ms ] story [ 17.1 ms ] thread
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

Good point -- it's not really relevant to the example that I'm using a borrow, so I changed it to a u64 instead.