format examples better (#471)
This commit is contained in:
parent
0a2e1b74df
commit
c46ab305be
|
|
@ -125,7 +125,7 @@ a new unstable feature:
|
||||||
2. Pick a name for the feature gate (for RFCs, use the name
|
2. Pick a name for the feature gate (for RFCs, use the name
|
||||||
in the RFC).
|
in the RFC).
|
||||||
|
|
||||||
3. Add a feature gate declaration to `libsyntax/active.rs`
|
3. Add a feature gate declaration to `libsyntax/feature_gate/active.rs`
|
||||||
in the active `declare_features` block:
|
in the active `declare_features` block:
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
|
|
@ -139,8 +139,8 @@ just `None`.
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
// allow '|' at beginning of match arms (RFC 1925)
|
/// Allows defining identifiers beyond ASCII.
|
||||||
( active, match_beginning_vert, "1.21.0", Some(44101), None),
|
(active, non_ascii_idents, "1.0.0", Some(55467), None),
|
||||||
```
|
```
|
||||||
|
|
||||||
When added, the current version should be the one for the current nightly.
|
When added, the current version should be the one for the current nightly.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue