mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 22:02:22 -05:00
4771a7b9e7
Missed a blank line, which causes the prompt incorrect like below: ```rust You can keep working on this exercise, or jump into the next one by removing the `I AM NOT DONE` comment: 6 | // Make this code compile by using the proper Rc primitives to express that the sun has multiple owners. 7 | 8 | // I AM NOT DONE 9 | use std::rc::Rc; ``` |
||
---|---|---|
.. | ||
arc1.rs | ||
box1.rs | ||
cow1.rs | ||
rc1.rs | ||
README.md |
Smart Pointers
In Rust, smart pointers are variables that contain an address in memory and reference some other data, but they also have additional metadata and capabilities. Smart pointers in Rust often own the data they point to, while references only borrow data.