Skip to content

Commit 6a34c77

Browse files
committed
---
yaml --- r: 152929 b: refs/heads/try2 c: de337f3 h: refs/heads/master i: 152927: ad11e84 v: v3
1 parent 267b608 commit 6a34c77

25 files changed

+314
-179
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 05e3248a7974f55b64f75a2483b37ff8c001a4ff
8+
refs/heads/try2: de337f3ddfbef800a8cf731e0b593e341af1e3e5
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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/try2/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/try2/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)