Skip to content

Commit 3848bda

Browse files
committed
---
yaml --- r: 131352 b: refs/heads/dist-snap c: de337f3 h: refs/heads/master v: v3
1 parent 6fc3593 commit 3848bda

25 files changed

+314
-179
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 05e3248a7974f55b64f75a2483b37ff8c001a4ff
9+
refs/heads/dist-snap: de337f3ddfbef800a8cf731e0b593e341af1e3e5
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/doc/guide-macros.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ macro_rules! biased_match_rec (
355355
_ => { $err }
356356
}
357357
);
358+
// Produce the requested values
358359
( binds $( $bind_res:ident ),* ) => ( ($( $bind_res ),*) )
359360
)
360361
@@ -364,7 +365,7 @@ macro_rules! biased_match (
364365
( $( ($e:expr) ~ ($p:pat) else $err:stmt ; )*
365366
binds $bind_res:ident
366367
) => (
367-
let ( $( $bind_res ),* ) = biased_match_rec!(
368+
let $bind_res = biased_match_rec!(
368369
$( ($e) ~ ($p) else $err ; )*
369370
binds $bind_res
370371
);

branches/dist-snap/src/libcollections/vec.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,14 +956,17 @@ impl<T> Vec<T> {
956956
///
957957
/// # Failure
958958
///
959-
/// Fails if `index` is out of bounds of the vector.
959+
/// Fails if `index` is not between `0` and the vector's length (both
960+
/// bounds inclusive).
960961
///
961962
/// # Example
962963
///
963964
/// ```rust
964965
/// let mut vec = vec!(1i, 2, 3);
965966
/// vec.insert(1, 4);
966967
/// assert_eq!(vec, vec!(1, 4, 2, 3));
968+
/// vec.insert(4, 5);
969+
/// assert_eq!(vec, vec!(1, 4, 2, 3, 5));
967970
/// ```
968971
pub fn insert(&mut self, index: uint, element: T) {
969972
let len = self.len();

branches/dist-snap/src/libsyntax/ast.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ pub enum Decl_ {
401401
DeclItem(Gc<Item>),
402402
}
403403

404+
/// represents one arm of a 'match'
404405
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash)]
405406
pub struct Arm {
406407
pub attrs: Vec<Attribute>,

0 commit comments

Comments
 (0)