From b2ebd8848cd1faf42a8b201d496992ef16c39ab0 Mon Sep 17 00:00:00 2001 From: Victor Costan Date: Sun, 18 Jun 2023 05:37:57 -0700 Subject: [PATCH] Document the historical reference in the newtypes example (#826) Document the historical reference in the newtypes example. --- src/structs/tuple-structs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/structs/tuple-structs.md b/src/structs/tuple-structs.md index 9524a2a9..eba10c1a 100644 --- a/src/structs/tuple-structs.md +++ b/src/structs/tuple-structs.md @@ -39,5 +39,6 @@ fn main() { * The value passed some validation when it was created, so you no longer have to validate it again at every use: 'PhoneNumber(String)` or `OddNumber(u32)`. * Demonstrate how to add a `f64` value to a `Newtons` type by accessing the single field in the newtype. * Rust generally doesn’t like inexplicit things, like automatic unwrapping or for instance using booleans as integers. - * Operator overloading is discussed on Day 3 (generics). + * Operator overloading is discussed on Day 3 (generics). +* The example is a subtle reference to the [Mars Climate Orbiter](https://en.wikipedia.org/wiki/Mars_Climate_Orbiter) failure.