Google Docs API client for OCaml
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

mdx: switch doc-example printers from Format/Printf to Fmt

Repo convention is to use the `fmt` library's Fmt.pr / Fmt.epr / etc.
in code, and the recently added mdx examples drifted to
Format.eprintf / Printf.eprintf out of habit. Brought them back into
line so a reader copy-pasting the example doesn't pick up the
wrong style.

Touches the {[ ... ]} blocks in:
- ocaml-collision/lib/collision.mli
- ocaml-cose/lib/cose.mli
- ocaml-delegation/lib/delegation.mli
- ocaml-gdocs/lib/gdocs.mli (also added fmt to the mdx libraries)
- ocaml-runc/lib/runc.mli (also added fmt to the mdx libraries; \n
format escapes became @. for consistency)
- ocaml-sigstore/lib/sigstore.mli

+2 -2
+1 -1
lib/dune
··· 17 17 18 18 (mdx 19 19 (files gdocs.mli) 20 - (libraries gdocs gauth requests eio eio.core eio.unix eio_main)) 20 + (libraries gdocs gauth requests fmt eio eio.core eio.unix eio_main))
+1 -1
lib/gdocs.mli
··· 16 16 Eio.Switch.run @@ fun sw -> 17 17 let http = Requests.v ~sw env in 18 18 match Gdocs.get http ~token doc_id with 19 - | Error (`Msg e) -> Format.eprintf "fetch failed: %s@." e 19 + | Error (`Msg e) -> Fmt.epr "fetch failed: %s@." e 20 20 | Ok doc -> 21 21 print_endline (Gdocs.Document.title doc); 22 22 print_endline (Gdocs.Markdown.of_document doc)