From 20fb7c62d433addf853b8ab824462fca536aba07 Mon Sep 17 00:00:00 2001 From: Florian Gilcher Date: Mon, 2 Jun 2014 12:37:54 +0200 Subject: docs: Stop using `notrust` Now that rustdoc understands proper language tags as the code not being Rust, we can tag everything properly. This change tags examples in other languages by their language. Plain notations are marked as `text`. Console examples are marked as `console`. Also fix markdown.rs to not highlight non-rust code. --- src/libsyntax/ext/deriving/generic/mod.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/deriving/generic/mod.rs b/src/libsyntax/ext/deriving/generic/mod.rs index 7bf4df357f4..101a9c7e3a3 100644 --- a/src/libsyntax/ext/deriving/generic/mod.rs +++ b/src/libsyntax/ext/deriving/generic/mod.rs @@ -102,7 +102,7 @@ above `PartialEq`, `A`, `B` and `C`. When generating the `expr` for the `A` impl, the `SubstructureFields` is -~~~notrust +~~~text Struct(~[FieldInfo { span: name: Some(), @@ -113,7 +113,7 @@ Struct(~[FieldInfo { For the `B` impl, called with `B(a)` and `B(b)`, -~~~notrust +~~~text Struct(~[FieldInfo { span: , name: None, @@ -127,7 +127,7 @@ Struct(~[FieldInfo { When generating the `expr` for a call with `self == C0(a)` and `other == C0(b)`, the SubstructureFields is -~~~notrust +~~~text EnumMatching(0, , ~[FieldInfo { span: @@ -139,7 +139,7 @@ EnumMatching(0, , For `C1 {x}` and `C1 {x}`, -~~~notrust +~~~text EnumMatching(1, , ~[FieldInfo { span: @@ -151,7 +151,7 @@ EnumMatching(1, , For `C0(a)` and `C1 {x}` , -~~~notrust +~~~text EnumNonMatching(~[(0, , ~[(, None, )]), (1, , @@ -165,7 +165,7 @@ EnumNonMatching(~[(0, , A static method on the above would result in, -~~~~notrust +~~~text StaticStruct(, Named(~[(, )])) StaticStruct(, Unnamed(~[])) @@ -792,7 +792,7 @@ impl<'a> MethodDef<'a> { /** Creates the nested matches for an enum definition recursively, i.e. - ~~~notrust + ~~~text match self { Variant1 => match other { Variant1 => matching, Variant2 => nonmatching, ... }, Variant2 => match other { Variant1 => nonmatching, Variant2 => matching, ... }, -- cgit 1.4.1-3-g733a5