Skip to content

Commit 78ed199

Browse files
Kobzolteor2345
andauthored
Improve sentence
Co-authored-by: teor <[email protected]>
1 parent b8b1407 commit 78ed199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3809-derive-from.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Using `#[derive(From)]` on unit structs, enums or tuple/named field structs that
156156
# Drawbacks
157157
[drawbacks]: #drawbacks
158158

159-
While this does enable more Rust code to "just work", it also introduces a special case that will have to be explained to the users. In this case it seems quite easily understandable though ("it only works for structs with a single field"), and we should be able to produce high-quality error messages in the compiler, as it is trivial to detect how many fields does a struct have.
159+
While this does enable more Rust code to "just work", it also introduces a special case that will have to be explained to the users. In this case it seems quite easily understandable though ("it only works for structs with a single field"), and we should be able to produce high-quality error messages in the compiler, as it is trivial to detect how many fields a struct has.
160160

161161
# Rationale and alternatives
162162
[rationale-and-alternatives]: #rationale-and-alternatives

0 commit comments

Comments
 (0)