about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorPhilip Munksgaard <pmunksgaard@gmail.com>2018-09-18 11:44:28 +0200
committerPhilip Munksgaard <pmunksgaard@gmail.com>2018-09-20 08:36:07 +0200
commitac8d8d71fac1225a35d4895f1f97dd14bc6a4ea2 (patch)
treed513af1192d63dfcf696c6b4b15940eb5cc5311b /src/doc
parentc996c4d316ce9023c3ef296a583e0c8bf7ce5880 (diff)
downloadrust-ac8d8d71fac1225a35d4895f1f97dd14bc6a4ea2.tar.gz
rust-ac8d8d71fac1225a35d4895f1f97dd14bc6a4ea2.zip
Add test for doctest edition support
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/unstable-book/src/language-features/try-blocks.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/doc/unstable-book/src/language-features/try-blocks.md b/src/doc/unstable-book/src/language-features/try-blocks.md
index 866b37a39a7..e342c260a73 100644
--- a/src/doc/unstable-book/src/language-features/try-blocks.md
+++ b/src/doc/unstable-book/src/language-features/try-blocks.md
@@ -9,9 +9,7 @@ The tracking issue for this feature is: [#31436]
 The `try_blocks` feature adds support for `try` blocks. A `try`
 block creates a new scope one can use the `?` operator in.
 
-```rust,ignore
-// This code needs the 2018 edition
-
+```rust,edition2018
 #![feature(try_blocks)]
 
 use std::num::ParseIntError;