𝗜𝗠𝗣𝗢𝗥𝗧𝗔𝗡𝗧: At 8:17, I finish the example for 𝙵𝚗 but... I missed an ampersand 🤦♂️ ~ consequently, that example does not demonstrate an immutable borrow because x implements the Copy trait. A better example would be:
𝚕𝚎𝚝 𝚡𝟷 = 𝟷;
𝚕𝚎𝚝 𝚘𝚔𝟷 = | | &𝚡𝟷 + 𝟷;
𝚙𝚛𝚒𝚗𝚝𝚕𝚗!("{:?}" , 𝚘𝚔𝟷( ));
𝚙𝚛𝚒𝚗𝚝𝚕𝚗!("{:?}" , 𝚡𝟷);
Thanks @Nicholas Sterling for catching this mistake 🔥
Chapter 13.1
- The Rust Programming Language Book: https://doc.rust-lang.org/book/
- danlogs git repository: https://github.com/danbugs/danlogs/
- danlogs discord server: / discord
- Follow me on Twitter: / danologue
- Follow me on GitHub: https://github.com/danbugs/
- For business inquiries, contact me on LinkedIn: / danbiz
Nesta página do site você pode assistir ao vídeo on-line Closures - Rust duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário danlogs 18 Maio 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 4,054 vezes e gostou 169 espectadores. Boa visualização!