Skip to content

Commit f324e0f

Browse files
authored
Fix typos in derive(Constructor) docs (#461)
1 parent a6fb827 commit f324e0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

impl/doc/constructor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# What `#[derive(Constructor)]` generates
22

33
A common pattern in Rust is to create a static constructor method called
4-
`new`. This method is can then be used to create an instance of a struct. You
4+
`new`. This method can then be used to create an instance of a struct. You
55
can now derive this method by using `#[derive(Constructor)]`, even though
6-
`Constructor` it is not an actual trait. The generated `new` method is very
6+
`Constructor` is not an actual trait. The generated `new` method is very
77
similar to the `from` method when deriving `From`, except that it takes multiple
88
arguments instead of a tuple.
99

@@ -12,7 +12,7 @@ arguments instead of a tuple.
1212

1313
## Tuple structs
1414

15-
When deriving `Constructor` for a tuple struct with a two fields like this:
15+
When deriving `Constructor` for a tuple struct with two fields like this:
1616

1717
```rust
1818
# use derive_more::Constructor;

0 commit comments

Comments
 (0)