Skip to content

Commit e449c10

Browse files
authored
Update docs (#29)
Signed-off-by: declark1 <[email protected]>
1 parent 437c0c1 commit e449c10

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mocktail is a **minimal** crate for mocking HTTP and gRPC servers in Rust, with
2525
1. Add `mocktail` to `Cargo.toml` as a development dependency:
2626
```toml
2727
[dev-dependencies]
28-
mocktail = { git = "https://github.com/IBM/mocktail.git", version = "0.2.4-alpha" }
28+
mocktail = "0.2.4-alpha"
2929
```
3030

3131
2. Basic usage example:

book/src/concepts/matchers/body.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ let mock = Mock::new(|when, then| {
4747
})
4848
```
4949
#### `text_stream(messages)`
50-
A text streaming body. `messages` is an iterator of `String` messages.
50+
A text streaming body. `messages` is an iterator of messages implementing `Into<String>`.
5151
```rust
5252
let mock = Mock::new(|when, then| {
5353
when.text_stream([

book/src/concepts/matchers/path.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Path prefix.
2828
Example:
2929
```rust
3030
let mock = Mock::new(|when, then| {
31-
when.path("/p");
31+
when.path_prefix("/p");
3232
then.ok();
3333
})
3434
```

book/src/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
1. Add `mocktail` to `Cargo.toml` as a development dependency:
44
```toml
55
[dev-dependencies]
6-
mocktail = { git = "https://github.com/IBM/mocktail.git", version = "0.2.4-alpha" }
6+
mocktail = "0.2.4-alpha"
77
```
88

99
2. Basic usage example:

0 commit comments

Comments
 (0)