Skip to content

Commit 934ef71

Browse files
committed
---
yaml --- r: 153406 b: refs/heads/try2 c: 61e84a5 h: refs/heads/master v: v3
1 parent b857098 commit 934ef71

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
@@ -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: e4801da62fb984981554864b3f196736b5c303e3
8+
refs/heads/try2: 61e84a5dcaf923ee4f8c98e8b7911650cf215f54
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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