Skip to content

Commit 41ad768

Browse files
Be more coincise
1 parent 93f1980 commit 41ad768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/idiomatic/leveraging-the-type-system/newtype-pattern.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ fn double(n: u64) -> u64 {
2222
double(UserId(1)); // 🛠️❌
2323
```
2424

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:
25+
The Rust compiler won't let you use methods or operators defined on the
26+
underlying type either:
2727

2828
```rust,compile_fail
2929
# pub struct UserId(u64);

0 commit comments

Comments
 (0)