summaryrefslogtreecommitdiff
path: root/exercises/smart_pointers/rc1.rs
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2023-09-04 14:39:16 +0200
committerGitHub <noreply@github.com>2023-09-04 14:39:16 +0200
commitad0fad4218d0baa9f6cb24d3292637d0f21aac52 (patch)
treec449b718ca8edf61be0755086ff08733907f8184 /exercises/smart_pointers/rc1.rs
parent8cb5cba7750a95336a2394c137b2e07202e30da3 (diff)
parenta5fe578e79914faf932cb8cd2d200a12d9e1af39 (diff)
Merge branch 'main' into update-hints-for-vecs2
Diffstat (limited to 'exercises/smart_pointers/rc1.rs')
-rw-r--r--exercises/smart_pointers/rc1.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/exercises/smart_pointers/rc1.rs b/exercises/smart_pointers/rc1.rs
index d62f361..ad3f1ce 100644
--- a/exercises/smart_pointers/rc1.rs
+++ b/exercises/smart_pointers/rc1.rs
@@ -1,9 +1,14 @@
// rc1.rs
-// In this exercise, we want to express the concept of multiple owners via the Rc<T> type.
-// This is a model of our solar system - there is a Sun type and multiple Planets.
-// The Planets take ownership of the sun, indicating that they revolve around the sun.
-
-// Make this code compile by using the proper Rc primitives to express that the sun has multiple owners.
+//
+// In this exercise, we want to express the concept of multiple owners via the
+// Rc<T> type. This is a model of our solar system - there is a Sun type and
+// multiple Planets. The Planets take ownership of the sun, indicating that they
+// revolve around the sun.
+//
+// Make this code compile by using the proper Rc primitives to express that the
+// sun has multiple owners.
+//
+// Execute `rustlings hint rc1` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE