You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a confusing bullet point in Day 1 afternoon, 9.1 Shared references:
Rust is tracking the lifetimes of all references to ensure they live long enough.
Dangling references cannot occur in safe Rust.
x_axis would return a reference to point, but point will be deallocated when the function returns, so this will not compile.
The code in the slide doesn't contain x_axis nor point.
The text was updated successfully, but these errors were encountered:
Good spot! I think that was just a leftover from when this slide was more complicated. We get to dangling references in later days. I'll make a PR shortly.
There's a confusing bullet point in Day 1 afternoon, 9.1 Shared references:
The code in the slide doesn't contain
x_axis
norpoint
.The text was updated successfully, but these errors were encountered: