Skip to content

Commit 81807fa

Browse files
committed
---
yaml --- r: 122589 b: refs/heads/snap-stage3 c: de337f3 h: refs/heads/master i: 122587: efa1022 v: v3
1 parent df91255 commit 81807fa

25 files changed

+314
-179
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 1bff1ff810dcfa8064c11e2b84473f053d1f69f1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 05e3248a7974f55b64f75a2483b37ff8c001a4ff
4+
refs/heads/snap-stage3: de337f3ddfbef800a8cf731e0b593e341af1e3e5
55
refs/heads/try: 2e9d9477b848cec778ca3f07ecdf0aea6ade23de
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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/snap-stage3/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/snap-stage3/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)