From 79e7fec454c9f9887c70c681593b81109532bb09 Mon Sep 17 00:00:00 2001 From: Denis Gorbachev <829578+DenisGorbachev@users.noreply.github.com> Date: Fri, 21 Jun 2024 16:17:06 +0700 Subject: [PATCH] Fix typos in add.md (#374) --- impl/doc/add.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/impl/doc/add.md b/impl/doc/add.md index c02eeb7c..ad709385 100644 --- a/impl/doc/add.md +++ b/impl/doc/add.md @@ -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`, because an error is returned when to different variants are +same variant. There's one big difference however: it returns a +`Result`, because an error is returned when two different variants are added together.