Skip to content

Commit 8db1e4e

Browse files
committed
---
yaml --- r: 277118 b: refs/heads/try c: 3b5cfa3 h: refs/heads/master
1 parent 318cc9a commit 8db1e4e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
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: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 8d61cb245d10bb2a61928cfa8651b1e88e7b115a
4+
refs/heads/try: 3b5cfa3ecf4e44b251ce121ab5dcf53c35de8eea
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/libstd/process.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,17 +507,16 @@ impl Child {
507507
///
508508
/// # Examples
509509
///
510-
/// ```should_panic
510+
/// ```no_run
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-
/// .unwrap_or_else(|e| { panic!("failed to execute child: {}", e) });
517+
/// .expect("failed to execute child");
518518
///
519-
/// let ecode = child.wait_with_output()
520-
/// .unwrap_or_else(|e| { panic!("failed to wait on child: {}", e) });
519+
/// let ecode = child.wait_with_output().expect("failed to wait on child");
521520
///
522521
/// assert!(ecode.success());
523522
/// ```

0 commit comments

Comments
 (0)