RosettaCodeData/Task/Hello-world-Standard-error/OCaml/hello-world-standard-error-1.ml

3 lines
183 B
OCaml
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
prerr_endline "Goodbye, World!"; (* this is how you print a string with newline to stderr *)
Printf.eprintf "Goodbye, World!\n"; (* this is how you would use printf with stderr *)