Skip to content

Commit fcf3f32

Browse files
committed
Remove explicit syntax highlight from docs.
1 parent 3e4be02 commit fcf3f32

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+172
-167
lines changed

src/liballoc/arc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ use heap::deallocate;
9494
/// With simple pipes, without `Arc`, a copy would have to be made for each
9595
/// task.
9696
///
97-
/// ```rust
97+
/// ```
9898
/// use std::sync::Arc;
9999
/// use std::thread;
100100
///

src/liballoc/boxed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ use core::raw::TraitObject;
6464
///
6565
/// The following two examples are equivalent:
6666
///
67-
/// ```rust
67+
/// ```
6868
/// #![feature(box_syntax)]
6969
/// use std::boxed::HEAP;
7070
///

src/libcollections/bit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static FALSE: bool = false;
133133
///
134134
/// # Examples
135135
///
136-
/// ```rust
136+
/// ```
137137
/// use std::collections::BitVec;
138138
///
139139
/// let mut bv = BitVec::from_elem(10, false);

src/libcollections/borrow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl<T> ToOwned for T where T: Clone {
129129
///
130130
/// # Examples
131131
///
132-
/// ```rust
132+
/// ```
133133
/// use std::borrow::Cow;
134134
///
135135
/// fn abs_all(input: &mut Cow<[i32]>) {

src/libcollections/fmt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ use string;
422422
///
423423
/// # Examples
424424
///
425-
/// ```rust
425+
/// ```
426426
/// use std::fmt;
427427
///
428428
/// let s = fmt::format(format_args!("Hello, {}!", "world"));

src/libcollections/slice.rs

+15-15
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub trait SliceExt {
134134
///
135135
/// # Examples
136136
///
137-
/// ```rust
137+
/// ```
138138
/// let mut v = [5, 4, 1, 3, 2];
139139
/// v.sort_by(|a, b| a.cmp(b));
140140
/// assert!(v == [1, 2, 3, 4, 5]);
@@ -160,7 +160,7 @@ pub trait SliceExt {
160160
///
161161
/// # Examples
162162
///
163-
/// ```rust
163+
/// ```
164164
/// let mut a = [1, 2, 3, 4, 5];
165165
/// let b = vec![6, 7, 8];
166166
/// let num_moved = a.move_from(b, 0, 3);
@@ -282,7 +282,7 @@ pub trait SliceExt {
282282
/// Print the adjacent pairs of a slice (i.e. `[1,2]`, `[2,3]`,
283283
/// `[3,4]`):
284284
///
285-
/// ```rust
285+
/// ```
286286
/// let v = &[1, 2, 3, 4];
287287
/// for win in v.windows(2) {
288288
/// println!("{:?}", win);
@@ -305,7 +305,7 @@ pub trait SliceExt {
305305
/// Print the slice two elements at a time (i.e. `[1,2]`,
306306
/// `[3,4]`, `[5]`):
307307
///
308-
/// ```rust
308+
/// ```
309309
/// let v = &[1, 2, 3, 4, 5];
310310
/// for win in v.chunks(2) {
311311
/// println!("{:?}", win);
@@ -396,7 +396,7 @@ pub trait SliceExt {
396396
/// uniquely determined position; the second and third are not
397397
/// found; the fourth could match any position in `[1,4]`.
398398
///
399-
/// ```rust
399+
/// ```
400400
/// let s = [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55];
401401
/// let s = s.as_slice();
402402
///
@@ -531,7 +531,7 @@ pub trait SliceExt {
531531
///
532532
/// # Examples
533533
///
534-
/// ```rust
534+
/// ```
535535
/// let mut v = ["a", "b", "c", "d"];
536536
/// v.swap(1, 3);
537537
/// assert!(v == ["a", "d", "c", "b"]);
@@ -551,7 +551,7 @@ pub trait SliceExt {
551551
///
552552
/// # Examples
553553
///
554-
/// ```rust
554+
/// ```
555555
/// let mut v = [1, 2, 3, 4, 5, 6];
556556
///
557557
/// // scoped to restrict the lifetime of the borrows
@@ -580,7 +580,7 @@ pub trait SliceExt {
580580
///
581581
/// # Examples
582582
///
583-
/// ```rust
583+
/// ```
584584
/// let mut v = [1, 2, 3];
585585
/// v.reverse();
586586
/// assert!(v == [3, 2, 1]);
@@ -612,7 +612,7 @@ pub trait SliceExt {
612612
///
613613
/// # Examples
614614
///
615-
/// ```rust
615+
/// ```
616616
/// let v = [1, 2, 3];
617617
/// let mut perms = v.permutations();
618618
///
@@ -623,7 +623,7 @@ pub trait SliceExt {
623623
///
624624
/// Iterating through permutations one by one.
625625
///
626-
/// ```rust
626+
/// ```
627627
/// let v = [1, 2, 3];
628628
/// let mut perms = v.permutations();
629629
///
@@ -640,7 +640,7 @@ pub trait SliceExt {
640640
///
641641
/// # Examples
642642
///
643-
/// ```rust
643+
/// ```
644644
/// let mut dst = [0, 0, 0];
645645
/// let src = [1, 2];
646646
///
@@ -660,7 +660,7 @@ pub trait SliceExt {
660660
///
661661
/// # Examples
662662
///
663-
/// ```rust
663+
/// ```
664664
/// let mut v = [-5, 4, 1, -3, 2];
665665
///
666666
/// v.sort();
@@ -682,7 +682,7 @@ pub trait SliceExt {
682682
/// uniquely determined position; the second and third are not
683683
/// found; the fourth could match any position in `[1,4]`.
684684
///
685-
/// ```rust
685+
/// ```
686686
/// let s = [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55];
687687
/// let s = s.as_slice();
688688
///
@@ -709,7 +709,7 @@ pub trait SliceExt {
709709
///
710710
/// # Examples
711711
///
712-
/// ```rust
712+
/// ```
713713
/// let v: &mut [_] = &mut [0, 1, 2];
714714
/// v.next_permutation();
715715
/// let b: &mut [_] = &mut [0, 2, 1];
@@ -729,7 +729,7 @@ pub trait SliceExt {
729729
///
730730
/// # Examples
731731
///
732-
/// ```rust
732+
/// ```
733733
/// let v: &mut [_] = &mut [1, 0, 2];
734734
/// v.prev_permutation();
735735
/// let b: &mut [_] = &mut [0, 2, 1];

src/libcollections/str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ pub trait StrExt: Index<RangeFull, Output = str> {
906906
///
907907
/// # Examples
908908
///
909-
/// ```rust
909+
/// ```
910910
/// assert!("banana".ends_with("nana"));
911911
/// ```
912912
#[stable(feature = "rust1", since = "1.0.0")]

src/libcollections/string.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl String {
110110
///
111111
/// # Examples
112112
///
113-
/// ```rust
113+
/// ```
114114
/// use std::str::Utf8Error;
115115
///
116116
/// let hello_vec = vec![104, 101, 108, 108, 111];
@@ -136,7 +136,7 @@ impl String {
136136
///
137137
/// # Examples
138138
///
139-
/// ```rust
139+
/// ```
140140
/// let input = b"Hello \xF0\x90\x80World";
141141
/// let output = String::from_utf8_lossy(input);
142142
/// assert_eq!(output, "Hello \u{FFFD}World");
@@ -268,7 +268,7 @@ impl String {
268268
///
269269
/// # Examples
270270
///
271-
/// ```rust
271+
/// ```
272272
/// // 𝄞music
273273
/// let mut v = &mut [0xD834, 0xDD1E, 0x006d, 0x0075,
274274
/// 0x0073, 0x0069, 0x0063];
@@ -296,7 +296,7 @@ impl String {
296296
///
297297
/// # Examples
298298
///
299-
/// ```rust
299+
/// ```
300300
/// // 𝄞mus<invalid>ic<invalid>
301301
/// let v = &[0xD834, 0xDD1E, 0x006d, 0x0075,
302302
/// 0x0073, 0xDD1E, 0x0069, 0x0063,

src/libcollections/vec.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ impl<T> Vec<T> {
636636
///
637637
/// # Examples
638638
///
639-
/// ```rust
639+
/// ```
640640
/// let mut vec = vec!(1, 2);
641641
/// vec.push(3);
642642
/// assert_eq!(vec, [1, 2, 3]);
@@ -674,7 +674,7 @@ impl<T> Vec<T> {
674674
///
675675
/// # Examples
676676
///
677-
/// ```rust
677+
/// ```
678678
/// let mut vec = vec![1, 2, 3];
679679
/// assert_eq!(vec.pop(), Some(3));
680680
/// assert_eq!(vec, [1, 2]);

src/libcollections/vec_deque.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ impl<T> VecDeque<T> {
200200
///
201201
/// # Examples
202202
///
203-
/// ```rust
203+
/// ```
204204
/// use std::collections::VecDeque;
205205
///
206206
/// let mut buf = VecDeque::new();
@@ -223,7 +223,7 @@ impl<T> VecDeque<T> {
223223
///
224224
/// # Examples
225225
///
226-
/// ```rust
226+
/// ```
227227
/// use std::collections::VecDeque;
228228
///
229229
/// let mut buf = VecDeque::new();
@@ -257,7 +257,7 @@ impl<T> VecDeque<T> {
257257
///
258258
/// # Examples
259259
///
260-
/// ```rust
260+
/// ```
261261
/// use std::collections::VecDeque;
262262
///
263263
/// let mut buf = VecDeque::new();
@@ -512,7 +512,7 @@ impl<T> VecDeque<T> {
512512
///
513513
/// # Examples
514514
///
515-
/// ```rust
515+
/// ```
516516
/// use std::collections::VecDeque;
517517
///
518518
/// let mut buf = VecDeque::new();
@@ -535,7 +535,7 @@ impl<T> VecDeque<T> {
535535
///
536536
/// # Examples
537537
///
538-
/// ```rust
538+
/// ```
539539
/// use std::collections::VecDeque;
540540
///
541541
/// let mut buf = VecDeque::new();
@@ -823,7 +823,7 @@ impl<T> VecDeque<T> {
823823
///
824824
/// # Examples
825825
///
826-
/// ```rust
826+
/// ```
827827
/// use std::collections::VecDeque;
828828
///
829829
/// let mut buf = VecDeque::new();
@@ -848,7 +848,7 @@ impl<T> VecDeque<T> {
848848
///
849849
/// # Examples
850850
///
851-
/// ```rust
851+
/// ```
852852
/// use std::collections::VecDeque;
853853
///
854854
/// let mut buf = VecDeque::new();
@@ -948,7 +948,7 @@ impl<T> VecDeque<T> {
948948
/// Panics if `i` is greater than ringbuf's length
949949
///
950950
/// # Examples
951-
/// ```rust
951+
/// ```
952952
/// use std::collections::VecDeque;
953953
///
954954
/// let mut buf = VecDeque::new();
@@ -1150,7 +1150,7 @@ impl<T> VecDeque<T> {
11501150
/// Returns `None` if `i` is out of bounds.
11511151
///
11521152
/// # Examples
1153-
/// ```rust
1153+
/// ```
11541154
/// use std::collections::VecDeque;
11551155
///
11561156
/// let mut buf = VecDeque::new();

src/libcore/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ macro_rules! writeln {
216216
///
217217
/// Match arms:
218218
///
219-
/// ```rust
219+
/// ```
220220
/// fn foo(x: Option<int>) {
221221
/// match x {
222222
/// Some(n) if n >= 0 => println!("Some(Non-negative)"),
@@ -229,7 +229,7 @@ macro_rules! writeln {
229229
///
230230
/// Iterators:
231231
///
232-
/// ```rust
232+
/// ```
233233
/// fn divide_by_three(x: u32) -> u32 { // one of the poorest implementations of x/3
234234
/// for i in std::iter::count(0, 1) {
235235
/// if 3*i < i { panic!("u32 overflow"); }

src/libcore/marker.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,15 +310,15 @@ impl<T:?Sized> MarkerTrait for T { }
310310
///
311311
/// Therefore, we can model a method like this as follows:
312312
///
313-
/// ```rust
313+
/// ```
314314
/// use std::marker::PhantomFn;
315315
/// trait Even : PhantomFn<Self> { }
316316
/// ```
317317
///
318318
/// Another equivalent, but clearer, option would be to use
319319
/// `MarkerTrait`:
320320
///
321-
/// ```rust
321+
/// ```
322322
/// use std::marker::MarkerTrait;
323323
/// trait Even : MarkerTrait { }
324324
/// ```

src/libcore/mem.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
251251
/// `self.buf`. But `replace` can be used to disassociate the original value of `self.buf` from
252252
/// `self`, allowing it to be returned:
253253
///
254-
/// ```rust
254+
/// ```
255255
/// use std::mem;
256256
/// # struct Buffer<T> { buf: Vec<T> }
257257
/// impl<T> Buffer<T> {

src/libcore/num/f32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ impl Float for f32 {
281281

282282
/// The fractional part of the number, satisfying:
283283
///
284-
/// ```rust
284+
/// ```
285285
/// use core::num::Float;
286286
///
287287
/// let x = 1.65f32;

src/libcore/num/f64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ impl Float for f64 {
288288

289289
/// The fractional part of the number, satisfying:
290290
///
291-
/// ```rust
291+
/// ```
292292
/// use core::num::Float;
293293
///
294294
/// let x = 1.65f64;

0 commit comments

Comments
 (0)