Skip to content

Commit

Permalink
Fix typos in add.md (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisGorbachev authored Jun 21, 2024
1 parent 9391fdb commit 79e7fec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions impl/doc/add.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# What `#[derive(Add)]` generates

The derived `Add` implementation will allow two structs from the same type to be
added together. This done by adding their respective fields together and
The derived `Add` implementation will allow two structs of the same type to be
added together. This is done by adding their respective fields together and
creating a new struct with those values.
For enums each variant can be added in a similar way to another instance of that
same variant. There's one big difference however, it returns a
`Result<EnumType>`, because an error is returned when to different variants are
same variant. There's one big difference however: it returns a
`Result<EnumType>`, because an error is returned when two different variants are
added together.


Expand Down

0 comments on commit 79e7fec

Please sign in to comment.