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
If the reader starts section 4 and tries to play around with variables by doing a bare let x = 5i;, they'll run into the error:
variables.rs:1:1: 1:4 error: expected item, found `let`
The guide should update the first few examples in section 4 to explicitly show let declared inside a function, so that the code will compile. This would also be a good place to explain why declaring the let outside fn yields an error.
The text was updated successfully, but these errors were encountered:
If the reader starts section 4 and tries to play around with variables by doing a bare
let x = 5i;
, they'll run into the error:The guide should update the first few examples in section 4 to explicitly show
let
declared inside a function, so that the code will compile. This would also be a good place to explain why declaring thelet
outsidefn
yields an error.The text was updated successfully, but these errors were encountered: