We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9c7aca5 + b5ca329 commit b7863f9Copy full SHA for b7863f9
src/doc/unstable-book/src/language-features/cfg-version.md
@@ -7,19 +7,20 @@ The tracking issue for this feature is: [#64796]
7
------------------------
8
9
The `cfg_version` feature makes it possible to execute different code
10
-depending on the compiler version.
+depending on the compiler version. It will return true if the compiler
11
+version is greater than or equal to the specified version.
12
13
## Examples
14
15
```rust
16
#![feature(cfg_version)]
17
-#[cfg(version("1.42"))]
18
+#[cfg(version("1.42"))] // 1.42 and above
19
fn a() {
20
// ...
21
}
22
-#[cfg(not(version("1.42")))]
23
+#[cfg(not(version("1.42")))] // 1.41 and below
24
25
26
0 commit comments