Compare commits

..

2 Commits

Author SHA1 Message Date
Thomas Leonard
19c42eb7a4
Merge pull request #614 from talex5/readme-env
Update README section about env
2023-08-31 11:28:41 +01:00
Thomas Leonard
d667d4fa95 Update README section about env
Spotted by Jon Sterling.
2023-08-31 09:08:23 +01:00

View File

@ -1758,8 +1758,8 @@ In many cases, it's clearer (if a little more verbose) to take the resources you
```ocaml
module Status : sig
val check :
clock:#Eio.Time.clock ->
net:#Eio.Net.t ->
clock:_ Eio.Time.clock ->
net:_ Eio.Net.t ->
bool
end
```
@ -1776,9 +1776,9 @@ If you define the type explicitly, you can describe why you need each resource t
<!-- $MDX skip -->
```ocaml
module Status : sig
type 'a env = <
net : #Eio.Net.t; (** To connect to the servers *)
clock : #Eio.Time.clock; (** Needed for timeouts *)
type 'a env = 'a constraint 'a = <
net : _ Eio.Net.t; (** To connect to the servers *)
clock : _ Eio.Time.clock; (** Needed for timeouts *)
..
> as 'a
@ -1786,7 +1786,6 @@ module Status : sig
end
```
## Further Reading
- [API reference][Eio API]