From c4294fc13230e2ffea79ff911c61621f702edaeb Mon Sep 17 00:00:00 2001 From: Alexis Hunt Date: Wed, 24 Jun 2020 17:51:08 -0400 Subject: [PATCH 1/2] Mention Box's partial field moves --- src/expressions/field-expr.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/expressions/field-expr.md b/src/expressions/field-expr.md index 4e187a1b4..eba32be28 100644 --- a/src/expressions/field-expr.md +++ b/src/expressions/field-expr.md @@ -30,7 +30,8 @@ Finally, the fields of a struct or a reference to a struct are treated as separate entities when borrowing. If the struct does not implement [`Drop`](../special-types-and-traits.md#drop) and is stored in a local variable, this also applies to moving out of each of its fields. This also does not apply -if automatic dereferencing is done though user defined types. +if automatic dereferencing is done though user defined types other than +[`Box`](..//special-types-and-traits.html#boxt). ```rust struct A { f1: String, f2: String, f3: String } From 84a4bcb11ec14011e8e64bfd5d83a48c54bad1eb Mon Sep 17 00:00:00 2001 From: Ryan Scheel Date: Thu, 5 Nov 2020 03:09:41 -0800 Subject: [PATCH 2/2] Remove double slash --- src/expressions/field-expr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expressions/field-expr.md b/src/expressions/field-expr.md index eba32be28..20fb98219 100644 --- a/src/expressions/field-expr.md +++ b/src/expressions/field-expr.md @@ -31,7 +31,7 @@ separate entities when borrowing. If the struct does not implement [`Drop`](../special-types-and-traits.md#drop) and is stored in a local variable, this also applies to moving out of each of its fields. This also does not apply if automatic dereferencing is done though user defined types other than -[`Box`](..//special-types-and-traits.html#boxt). +[`Box`](../special-types-and-traits.html#boxt). ```rust struct A { f1: String, f2: String, f3: String }