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
let nums = [1,2,3];for num in nums.iter(){println!("{}", num);}
Up to this point this chapter has used vec![] instead of [] exclusively, and even the paragraph above this code refers to "vectors". This has led to some confusion over whether [] creates a vector, which is probably not an explanation fit for this section.