Skip to content

Commit 6059365

Browse files
committed
Clean up contractions in future proofing
1 parent 265ff5e commit 6059365

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/future-proofing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ pub fn my_transform<I: Iterator>(input: I) -> impl Iterator<Item = (usize, I::It
125125
<a id="c-struct-bounds"></a>
126126
## Data structures do not duplicate derived trait bounds (C-STRUCT-BOUNDS)
127127

128-
Generic data structures should not use trait bounds that can be derived or don't
129-
otherwise add semantic value. Each trait in the `derive` attribute will be
128+
Generic data structures should not use trait bounds that can be derived or do
129+
not otherwise add semantic value. Each trait in the `derive` attribute will be
130130
expanded into a separate `impl` block that only applies to generic arguments
131131
that implement that trait.
132132

@@ -171,8 +171,8 @@ The following traits should never be used in bounds on data structures:
171171
- `Deserialize`
172172
- `DeserializeOwned`
173173

174-
There's a grey area around other non-derivable trait bounds that aren't strictly
175-
required by the structure definition, like `Read` or `Write`. They may
174+
There is a grey area around other non-derivable trait bounds that are not
175+
strictly required by the structure definition, like `Read` or `Write`. They may
176176
communicate the intented behaviour of the type better in its definition but also
177177
limits future extensibility. Including semantically useful trait bounds on data
178178
structures is still less problematic than including derivable traits as bounds.

0 commit comments

Comments
 (0)