Skip to content

Commit 6c4fe8f

Browse files
committed
---
yaml --- r: 275355 b: refs/heads/master c: aefbbc7 h: refs/heads/master i: 275353: 1ce1635 275351: d80d602
1 parent 35830de commit 6c4fe8f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3b5cfa3ecf4e44b251ce121ab5dcf53c35de8eea
2+
refs/heads/master: aefbbc79a3d0c082e19fe3368604dab91333f8a9
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/libstd/process.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,16 +507,17 @@ impl Child {
507507
///
508508
/// # Examples
509509
///
510-
/// ```no_run
510+
/// ```should_panic
511511
/// use std::process::{Command, Stdio};
512512
///
513513
/// let mut child = Command::new("/bin/cat")
514514
/// .stdout(Stdio::piped())
515515
/// .arg("file.txt")
516516
/// .spawn()
517-
/// .expect("failed to execute child");
517+
/// .unwrap_or_else(|e| { panic!("failed to execute child: {}", e) });
518518
///
519-
/// let ecode = child.wait_with_output().expect("failed to wait on child");
519+
/// let ecode = child.wait_with_output()
520+
/// .unwrap_or_else(|e| { panic!("failed to wait on child: {}", e) });
520521
///
521522
/// assert!(ecode.success());
522523
/// ```

0 commit comments

Comments
 (0)