about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorWho? Me?! <mark-i-m@users.noreply.github.com>2019-02-20 12:58:01 -0500
committerWho? Me?! <mark-i-m@users.noreply.github.com>2019-02-23 18:12:58 -0600
commit81d0e42cd318793f85560dd9e8159c18535f6071 (patch)
tree101344310e92150202274d80021be048f1e5cfb0 /src/doc/rustc-dev-guide
parentef2e724354af9ba04fabcaad2b3a822e0eb85f64 (diff)
downloadrust-81d0e42cd318793f85560dd9e8159c18535f6071.tar.gz
rust-81d0e42cd318793f85560dd9e8159c18535f6071.zip
Update src/implementing_new_feature.md
Co-Authored-By: rajcspsg <raj.cs.psg@gmail.com>
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/implementing_new_feature.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/implementing_new_feature.md b/src/doc/rustc-dev-guide/src/implementing_new_feature.md
index 20c250527bc..2344ab6f932 100644
--- a/src/doc/rustc-dev-guide/src/implementing_new_feature.md
+++ b/src/doc/rustc-dev-guide/src/implementing_new_feature.md
@@ -115,7 +115,7 @@ The current version is not actually important – the important version is when
 
     You can check it in most places in the compiler using the expression `tcx.features().$feature_name` (or `sess.features_untracked().borrow().$feature_name` if the tcx is unavailable)
 
-If the feature gate is not set, you should either maintain the pre-feature behavior or raise an error, depending on what makes sense.
+    If the feature gate is not set, you should either maintain the pre-feature behavior or raise an error, depending on what makes sense.
 
 5. Add a test to ensure the feature cannot be used without a feature gate, by creating `feature-gate-$feature_name.rs` and `feature-gate-$feature_name.stderr` files under the `src/test/ui/feature-gates` directory.