summary refs log tree commit diff
path: root/src/doc/reference.md
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2014-09-26 17:48:16 +1200
committerNick Cameron <ncameron@mozilla.com>2014-10-02 13:23:36 +1300
commit95cfc35607ccf5f02f02de56a35a9ef50fa23a82 (patch)
tree85cb0f79ec42469ac7203cdcc09ffee5247cded7 /src/doc/reference.md
parentdf2f1fa7680a86ba228f004e7de731e91a1df1fe (diff)
downloadrust-95cfc35607ccf5f02f02de56a35a9ef50fa23a82.tar.gz
rust-95cfc35607ccf5f02f02de56a35a9ef50fa23a82.zip
Put slicing syntax behind a feature gate.
[breaking-change]

If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
Diffstat (limited to 'src/doc/reference.md')
-rw-r--r--src/doc/reference.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 3da3d4c5807..c3b61f6435c 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -3828,7 +3828,7 @@ type signature of `print`, and the cast expression in `main`.
 Within the body of an item that has type parameter declarations, the names of
 its type parameters are types:
 
-```
+```ignore
 fn map<A: Clone, B: Clone>(f: |A| -> B, xs: &[A]) -> Vec<B> {
     if xs.len() == 0 {
        return vec![];