Skip to content

Commit bed6548

Browse files
rmonathhugo
authored andcommitted
Sys_js: fix doc of read_file when file does not exist
1 parent 01d2711 commit bed6548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/js_of_ocaml/sys_js.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ val mount : path:string -> (prefix:string -> path:string -> string option) -> un
4949

5050
val read_file : name:string -> string
5151
(** [read_file name] returns the content of the file [name].
52-
Raise [Not_found] if the file does not exists. *)
52+
Raise [Sys_error] if the file does not exist. *)
5353

5454
val create_file : name:string -> content:string -> unit
5555
(** Register a file to a Pseudo Filesystem.

0 commit comments

Comments
 (0)