Skip to content

Commit

Permalink
docs: suggest opening Syntax instead of defining your own operators
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-proust authored and smorimoto committed Dec 3, 2021
1 parent 7557b9b commit 6078308
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/manual.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,10 @@ val p3 : '_a Lwt.t = <abstr>
=== {{{let*}}} syntax ===

To use Lwt with the {{{let*}}} syntax introduced in OCaml 4.08, you can define:
To use Lwt with the {{{let*}}} syntax introduced in OCaml 4.08, you can open
the {{{Syntax}}} module:
<<code language="ocaml" |let (let*) = Lwt.bind
let (and*) = Lwt.both
<<code language="ocaml" |open Syntax
>>

Then, you can write
Expand Down

0 comments on commit 6078308

Please sign in to comment.