Skip to content

Commit 6644fd0

Browse files
authored
Update patterns/newtype.md
1 parent 80500e1 commit 6644fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patterns/newtype.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ What if in some cases we want a type to behave similar to another type or
44
enforce some behaviour at compile time where using only type aliases would
55
not be enough?
66

7-
For example, if you want to create a custom `Display` implementation for `String`
7+
For example, if we want to create a custom `Display` implementation for `String`
88
due to security considerations (e.g. passwords).
99

1010
For such cases we could use the `Newtype` pattern to provide __type safety__ and __encapsulation__.

0 commit comments

Comments
 (0)