Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update stubbing.md with the right command #2460

Merged
merged 1 commit into from
May 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update stubbing.md with the right command
The original command invoked a call to a harness that is not relevant. The author probably meant to call the harness in the example `encrypt_then_decrypt_is_identity`.
  • Loading branch information
jaisnan authored May 23, 2023
commit 6205a0ace91b073ac94bd00ae0724f1ac9783715
2 changes: 1 addition & 1 deletion docs/src/reference/stubbing.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Note that this is a fair assumption to do: `rand::random` is expected to return
Now, let's run it through Kani:

```bash
cargo kani --enable-unstable --enable-stubbing --harness random_cannot_be_zero
cargo kani --enable-unstable --enable-stubbing --harness encrypt_then_decrypt_is_identity
```

The verification result is composed of a single check: the assertion corresponding to `assert_eq!(data, decrypted_data)`.
Expand Down