summaryrefslogtreecommitdiff
path: root/exercises/error_handling/errors5.rs
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2022-08-16 09:37:34 +0200
committerGitHub <noreply@github.com>2022-08-16 09:37:34 +0200
commit1c3b003c7c5fa89642f64e49adc4b145e6392a44 (patch)
treee9f88e04e7f5226e507fee5fa501fbcc0af95c4c /exercises/error_handling/errors5.rs
parentce86d252e529385704fe9111e305ac0ec48c2de4 (diff)
parent25ab52b8e722df8b18b1e46651b56783d62f76af (diff)
Merge branch 'main' into rc-exercise
Diffstat (limited to 'exercises/error_handling/errors5.rs')
-rw-r--r--exercises/error_handling/errors5.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/exercises/error_handling/errors5.rs b/exercises/error_handling/errors5.rs
index 67411c5..2ba8f90 100644
--- a/exercises/error_handling/errors5.rs
+++ b/exercises/error_handling/errors5.rs
@@ -4,6 +4,8 @@
// This exercise uses some concepts that we won't get to until later in the course, like `Box` and the
// `From` trait. It's not important to understand them in detail right now, but you can read ahead if you like.
+// For now, think of the `Box<dyn ...>` type as an "I want anything that does ???" type, which, given
+// Rust's usual standards for runtime safety, should strike you as somewhat lenient!
// In short, this particular use case for boxes is for when you want to own a value and you care only that it is a
// type which implements a particular trait. To do so, The Box is declared as of type Box<dyn Trait> where Trait is the trait