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() {
235
235
Mitigation strategies:
236
236
* Do not add new fields to all-public field structs.
237
237
* 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
239
239
provide a constructor method and/or [ Default] implementation.
240
240
241
241
<a id =" struct-add-public-field-when-no-private " ></a >
@@ -270,7 +270,7 @@ fn main() {
270
270
Mitigation strategies:
271
271
* Do not add new new fields to all-public field structs.
272
272
* 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
274
274
provide a constructor method and/or [ Default] implementation.
275
275
276
276
<a id =" struct-private-fields-with-private " ></a >
You can’t perform that action at this time.
0 commit comments