Skip to content

Commit 4b2a6e0

Browse files
committed
fix: Fix typos
1 parent f3bd46e commit 4b2a6e0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,7 @@ let result = client
125125
.read_events("/books/42", Some(
126126
ReadEventsOptions {
127127
recursive: false,
128-
from_latest_event: None,
129-
order: None,
130-
lower_bound: None,
131-
upper_bound: None,
128+
...Default::default(),
132129
}
133130
))
134131
.await;
@@ -162,7 +159,7 @@ This also allows you to read *all* events ever written. To do so, provide `/` as
162159

163160
#### Reading in Anti-Chronological Order
164161

165-
By default, events are read in chronological order. To read in anti-chronological order, provide the `order` option and set it using the `Antichronological` Ordering:
162+
By default, events are read in chronological order. To read in anti-chronological order, provide the `order` option and set it using the `Antichronological` ordering:
166163

167164
```rust
168165
let result = client
@@ -176,7 +173,7 @@ let result = client
176173
.await;
177174
```
178175

179-
*Note that you can also use the `Chronological` Ordering to explicitly enforce the default order.*
176+
*Note that you can also use the `Chronological` ordering to explicitly enforce the default order.*
180177

181178
#### Specifying Bounds
182179

@@ -207,7 +204,7 @@ let result = client
207204

208205
To read starting from the latest event of a given type, provide the `from_latest_event` option and specify the subject, the type, and how to proceed if no such event exists.
209206

210-
Possible options are `ReadNothing`, which skips reading entirely, or `ReadyEverything`, which effectively behaves as if `from_latest_event` was not specified:
207+
Possible options are `ReadNothing`, which skips reading entirely, or `ReadEverything`, which effectively behaves as if `from_latest_event` was not specified:
211208

212209
```rust
213210
let result = client

0 commit comments

Comments
 (0)