Skip to content

Commit 19ffbbc

Browse files
committed
Merge pull request #21040 from steveklabnik/gh20037
Don't use 'synonym' with regards to newtypes Reviewed-by: alexcrichton
2 parents 4c615a8 + 16a8c4d commit 19ffbbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)