Skip to content

Commit

Permalink
Improve comments.
Browse files Browse the repository at this point in the history
Signed-off-by: Karolis Petrauskas <[email protected]>
  • Loading branch information
kape1395 committed Aug 26, 2024
1 parent 47afb6b commit 0c996a6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/tlapm_lib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,11 @@ let read_new_modules mcx fs =
List.fold_left begin
fun (mcx, mods) fn ->
let hint = Util.locate fn Loc.unknown in
(* Params.use_stdin is only set, if a single file is passed to the tlapm.
Bellow we set the use_stdin_prop property for the single input file only.
This way the file passed explicitly will be read from stdin and all the files
referenced from it will be searched in a file system, as usual. *)
(* The flag `Params.use_stdin` can only be set to true if only a single
file is passed to the `tlapm`. Therefore, the following assignment of
the `use_stdin_prop` property will only be applied to a single file.
This way, the file passed explicitly will be read from `stdin`, and all
the files referenced from it will be searched in a file system, as usual. *)
let hint = match !Params.use_stdin with
| true -> Property.assign hint Module.Save.module_content_prop (Module.Save.Channel Stdlib.stdin)
| false -> hint
Expand Down

0 comments on commit 0c996a6

Please sign in to comment.