Skip to content

Commit b6079db

Browse files
committed
docs: improve readme
1 parent 78ec2b0 commit b6079db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ type Success[R] = Effect[Never, Never, R] # for effects that don't fail
115115
```
116116

117117

118-
Lets define a simple ability. `stateless.Ability` is defined as:
118+
Let's define a simple ability. `stateless.Ability` is defined as:
119119

120120
```python
121121
from typing import Self
@@ -215,7 +215,7 @@ run(hello_world()) # type-checker error!
215215

216216
We'll get a type-checker error since we can't run an effect with unhandled abilities.
217217

218-
Lets try this instead:
218+
Let's try this instead:
219219

220220
```python
221221
effect = handle(greet)(hello_world)()
@@ -392,7 +392,7 @@ def say_hello() -> Depend[Need[Console], None]:
392392
```
393393

394394
A major purpose of dependency injection is to vary the injected ability to change the behavior of the effect. For example, we
395-
might want to change the behavior of `say_hello` in tests. Lets define a subtype of `Console` to use in a test:
395+
might want to change the behavior of `say_hello` in tests. Let's define a subtype of `Console` to use in a test:
396396

397397

398398
```python
@@ -404,7 +404,7 @@ When trying to handle `Need[Console]` with `supply(MockConsole())`, you may need
404404

405405
To assist with type inference for type checkers with local type narrowing, stateless supplies a utility function `as_type`, that tells your type checker to treat a subtype as a supertype in a certain context.
406406

407-
Lets use `as_type` with `supply`:
407+
Let's use `as_type` with `supply`:
408408
```python
409409
from stateless import as_type, supply
410410

0 commit comments

Comments
 (0)