Verified Commit badc718b authored by Alexandru Scvortov's avatar Alexandru Scvortov
Browse files

update API in README

parent 2387160b
......@@ -36,8 +36,9 @@ Basic example:
```rust
extern crate challenge_prompt;
if !challenge_prompt::Challenge::Arithmetic.prompt() {
panic!("user failed the challenge")
let mut rng = challenge_prompt::Rng::new_from_time().unwrap();
if !challenge_prompt::Challenge::Arithmetic.prompt(&mut rng) {
panic!("user failed the challenge")
}
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment