From 41ad768fd6d8e8ae4d5444db98735d4d33e7c0ef Mon Sep 17 00:00:00 2001 From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Mon, 7 Jul 2025 13:34:00 +0200 Subject: [PATCH] Be more coincise --- src/idiomatic/leveraging-the-type-system/newtype-pattern.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/idiomatic/leveraging-the-type-system/newtype-pattern.md b/src/idiomatic/leveraging-the-type-system/newtype-pattern.md index 18104d73..330e465b 100644 --- a/src/idiomatic/leveraging-the-type-system/newtype-pattern.md +++ b/src/idiomatic/leveraging-the-type-system/newtype-pattern.md @@ -22,8 +22,8 @@ fn double(n: u64) -> u64 { double(UserId(1)); // 🛠️❌ ``` -The Rust compiler won't implicitly convert to (or from) the underlying type.\ -It won't let you use methods or operators defined on the underlying type either: +The Rust compiler won't let you use methods or operators defined on the +underlying type either: ```rust,compile_fail # pub struct UserId(u64);