Skip to content

Commit 18483b4

Browse files
committed
make (not yet actually used) doctest actually use the crate, and fix a comment
1 parent f7612f7 commit 18483b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cargo-miri/bin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fn xargo_check() -> Command {
140140
Command::new(env::var_os("XARGO_CHECK").unwrap_or_else(|| OsString::from("xargo-check")))
141141
}
142142

143-
/// Execute the command if it fails, fail this process with the same exit code.
143+
/// Execute the command. If it fails, fail this process with the same exit code.
144144
/// Otherwise, continue.
145145
fn exec(mut cmd: Command) {
146146
let exit_status = cmd.status().expect("failed to run command");

test-cargo-miri/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Doc-test test
22
/// ```rust
3-
/// assert!(true);
3+
/// assert!(cargo_miri_test::make_true());
44
/// ```
55
pub fn make_true() -> bool {
66
true

0 commit comments

Comments
 (0)