about summary refs log tree commit diff stats
path: root/bin
diff options
context:
space:
mode:
authorbrian <brianmchu42@gmail.com>2023-12-03 22:17:21 -0800
committerbrian <brianmchu42@gmail.com>2023-12-03 22:17:21 -0800
commitb4ac6d36f2f20f45c6d67f28c3785efaa482085d (patch)
treea7dc29d1cb316c15d2835bbca65a4401c9b62c2e /bin
parent7000f47b60b3fbdf90e2db12a363bbd1b2236b53 (diff)
downloadAdventOfCode2023-main.tar.gz
fix compilation errors for using Caml instead of Stdlib HEAD main
Diffstat (limited to 'bin')
-rw-r--r--bin/main.ml2
-rw-r--r--bin/utils.ml2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/main.ml b/bin/main.ml
index 8e36c28..494e274 100644
--- a/bin/main.ml
+++ b/bin/main.ml
@@ -5,7 +5,7 @@ let () =
   let args = Sys.argv in
   let day = args.(1) in
   let input_file = Printf.sprintf "inputs/%s.in" day in
-  if not @@ Caml.Sys.file_exists input_file then
+  if not @@ Stdlib.Sys.file_exists input_file then
     download_input day input_file ;
   let file = In_channel.open_text input_file in
   let inputs = In_channel.input_all file in
diff --git a/bin/utils.ml b/bin/utils.ml
index 4f488f4..cd098bb 100644
--- a/bin/utils.ml
+++ b/bin/utils.ml
@@ -13,7 +13,7 @@ let get_token () =
   In_channel.close file ; String.trim token
 
 let get_year () =
-  if Caml.Sys.file_exists year_file then (
+  if Stdlib.Sys.file_exists year_file then (
     let file = In_channel.open_text year_file in
     let year = In_channel.input_all file in
     In_channel.close file ;