File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ fn main() {
235235Mitigation strategies:
236236* Do not add new fields to all-public field structs.
237237* Mark structs as [ ` #[non_exhaustive] ` ] [ non_exhaustive ] when first introducing
238- an struct to prevent users from using struct literal syntax, and instead
238+ a struct to prevent users from using struct literal syntax, and instead
239239 provide a constructor method and/or [ Default] implementation.
240240
241241<a id =" struct-add-public-field-when-no-private " ></a >
@@ -270,7 +270,7 @@ fn main() {
270270Mitigation strategies:
271271* Do not add new new fields to all-public field structs.
272272* Mark structs as [ ` #[non_exhaustive] ` ] [ non_exhaustive ] when first introducing
273- an struct to prevent users from using struct literal syntax, and instead
273+ a struct to prevent users from using struct literal syntax, and instead
274274 provide a constructor method and/or [ Default] implementation.
275275
276276<a id =" struct-private-fields-with-private " ></a >
You can’t perform that action at this time.
0 commit comments