ocaml / ocaml

The core OCaml system: compilers, runtime system, base libraries
https://ocaml.org
Other
5.19k stars 1.06k forks source link

Doc typo in `Printexc` #13124

Closed dbuenzli closed 2 weeks ago

dbuenzli commented 2 weeks ago

I don't feel like making a PR for that, someone can likely push directly.

> git diff 
diff --git a/stdlib/printexc.mli b/stdlib/printexc.mli
index cfedc097a9..15e3cb94e2 100644
--- a/stdlib/printexc.mli
+++ b/stdlib/printexc.mli
@@ -103,7 +103,7 @@ val register_printer: (exn -> string option) -> unit

 val use_printers: exn -> string option
 (** [Printexc.use_printers e] returns [None] if there are no registered
-    printers and [Some s] with else as the resulting string otherwise.
+    printers and [Some s] with [s] as the resulting string otherwise.
     @since 4.09
 *)
nojb commented 2 weeks ago

https://github.com/ocaml/ocaml/commit/51c152a85b61cab0a68f907e920cfa7d6f2b96e4

nojb commented 2 weeks ago

Thanks!