mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
make (not yet actually used) doctest actually use the crate, and fix a comment
This commit is contained in:
+1
-1
@@ -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");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/// Doc-test test
|
||||
/// ```rust
|
||||
/// assert!(true);
|
||||
/// assert!(cargo_miri_test::make_true());
|
||||
/// ```
|
||||
pub fn make_true() -> bool {
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user