We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80500e1 commit 6644fd0Copy full SHA for 6644fd0
patterns/newtype.md
@@ -4,7 +4,7 @@ What if in some cases we want a type to behave similar to another type or
4
enforce some behaviour at compile time where using only type aliases would
5
not be enough?
6
7
-For example, if you want to create a custom `Display` implementation for `String`
+For example, if we want to create a custom `Display` implementation for `String`
8
due to security considerations (e.g. passwords).
9
10
For such cases we could use the `Newtype` pattern to provide __type safety__ and __encapsulation__.
0 commit comments