Skip to content

Commit 16a8c4d

Browse files
committed
Don't use 'synonym' with regards to newtypes
Fixes #20037.
1 parent b21a6da commit 16a8c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/compound-data-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ and with a struct, we have actual names.
182182

183183
There _is_ one case when a tuple struct is very useful, though, and that's a
184184
tuple struct with only one element. We call this a *newtype*, because it lets
185-
you create a new type that's a synonym for another one:
185+
you create a new type that's similar to another one:
186186

187187
```{rust}
188188
struct Inches(i32);

0 commit comments

Comments
 (0)