Skip to content

Commit 7a5aab5

Browse files
authored
Merge pull request #624 from ehuss/cfg-generic
Update for cfg on generic parameter.
2 parents 65673ee + cc356b0 commit 7a5aab5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/conditional-compilation.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ fn needs_not_foo() {
246246
}
247247
```
248248

249-
The `cfg` attribute is allowed anywhere attributes are allowed except on
250-
generic parameters.
249+
The `cfg` attribute is allowed anywhere attributes are allowed.
251250

252251
### The `cfg_attr` attribute
253252

@@ -289,8 +288,7 @@ fn bewitched() {}
289288
> is valid. This example would be equivalent to
290289
> `#[cfg_attr(all(linux, feature ="multithreaded"), some_other_attribute)]`.
291290
292-
The `cfg_attr` attribute is allowed anywhere attributes are allowed except on
293-
generic parameters.
291+
The `cfg_attr` attribute is allowed anywhere attributes are allowed.
294292

295293
### The `cfg` macro
296294

0 commit comments

Comments
 (0)