We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f1980 commit 41ad768Copy full SHA for 41ad768
src/idiomatic/leveraging-the-type-system/newtype-pattern.md
@@ -22,8 +22,8 @@ fn double(n: u64) -> u64 {
22
double(UserId(1)); // 🛠️❌
23
```
24
25
-The Rust compiler won't implicitly convert to (or from) the underlying type.\
26
-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:
27
28
```rust,compile_fail
29
# pub struct UserId(u64);
0 commit comments