make (not yet actually used) doctest actually use the crate, and fix a comment

This commit is contained in:
Ralf Jung 2020-09-12 14:09:43 +02:00
parent f7612f71bc
commit 18483b4d5e
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ fn xargo_check() -> Command {
Command::new(env::var_os("XARGO_CHECK").unwrap_or_else(|| OsString::from("xargo-check")))
}
/// Execute the command if it fails, fail this process with the same exit code.
/// Execute the command. If it fails, fail this process with the same exit code.
/// Otherwise, continue.
fn exec(mut cmd: Command) {
let exit_status = cmd.status().expect("failed to run command");

View File

@ -1,6 +1,6 @@
/// Doc-test test
/// ```rust
/// assert!(true);
/// assert!(cargo_miri_test::make_true());
/// ```
pub fn make_true() -> bool {
true