From c3abb35837c020f056690e052b849469bb4b31eb Mon Sep 17 00:00:00 2001 From: justanotheranonymoususer Date: Sun, 22 Oct 2023 17:13:39 +0300 Subject: [PATCH] Update tuple-structs.md (#1404) Fix markdown --- src/structs/tuple-structs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structs/tuple-structs.md b/src/structs/tuple-structs.md index eba10c1a..4f52426e 100644 --- a/src/structs/tuple-structs.md +++ b/src/structs/tuple-structs.md @@ -36,7 +36,7 @@ fn main() { * Newtypes are a great way to encode additional information about the value in a primitive type, for example: * The number is measured in some units: `Newtons` in the example above. - * 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)`. + * 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).