Skip to content

Commit 672c204

Browse files
committed
---
yaml --- r: 123861 b: refs/heads/auto c: 61e84a5 h: refs/heads/master i: 123859: 7bfd345 v: v3
1 parent 29e90eb commit 672c204

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: e4801da62fb984981554864b3f196736b5c303e3
16+
refs/heads/auto: 61e84a5dcaf923ee4f8c98e8b7911650cf215f54
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libcore/result.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,10 @@ impl<T, E> Result<T, E> {
536536
impl<T, E: Show> Result<T, E> {
537537
/// Unwraps a result, yielding the content of an `Ok`.
538538
///
539-
/// Fails if the value is an `Err`.
539+
/// # Failure
540+
///
541+
/// Fails if the value is an `Err`, with a custom failure message provided
542+
/// by the `Err`'s value.
540543
#[inline]
541544
pub fn unwrap(self) -> T {
542545
match self {
@@ -550,7 +553,10 @@ impl<T, E: Show> Result<T, E> {
550553
impl<T: Show, E> Result<T, E> {
551554
/// Unwraps a result, yielding the content of an `Err`.
552555
///
553-
/// Fails if the value is an `Ok`.
556+
/// # Failure
557+
///
558+
/// Fails if the value is an `Ok`, with a custom failure message provided
559+
/// by the `Ok`'s value.
554560
#[inline]
555561
pub fn unwrap_err(self) -> E {
556562
match self {

branches/auto/src/libstd/io/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ pub type IoResult<T> = Result<T, IoError>;
293293
/// # FIXME
294294
///
295295
/// Is something like this sufficient? It's kind of archaic
296-
#[deriving(PartialEq, Clone)]
296+
#[deriving(PartialEq, Eq, Clone)]
297297
pub struct IoError {
298298
/// An enumeration which can be matched against for determining the flavor
299299
/// of error.
@@ -435,7 +435,7 @@ impl fmt::Show for IoError {
435435
}
436436

437437
/// A list specifying general categories of I/O error.
438-
#[deriving(PartialEq, Clone, Show)]
438+
#[deriving(PartialEq, Eq, Clone, Show)]
439439
pub enum IoErrorKind {
440440
/// Any I/O error not part of this list.
441441
OtherIoError,

0 commit comments

Comments
 (0)