From 87fd00fe948a3af0de28d53047c54789ea2fbae5 Mon Sep 17 00:00:00 2001 From: Caleb Webber Date: Sun, 22 Oct 2023 16:26:48 -0400 Subject: [PATCH] spelling --- day1.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/day1.ex b/day1.ex index d1129dd..eb70ae5 100644 --- a/day1.ex +++ b/day1.ex @@ -1,4 +1,4 @@ -defmodule Excersize1 do +defmodule Exercise1 do def to_command(s) do try do {:add, s |> String.trim() |> String.to_integer()} @@ -34,10 +34,10 @@ end result = IO.stream() |> Enum.reduce_while( - Excersize1.init_state(), + Exercise1.init_state(), fn line, acc -> line - |> Excersize1.to_command() - |> Excersize1.apply_command(acc) + |> Exercise1.to_command() + |> Exercise1.apply_command(acc) |> then(fn acc -> if elem(acc, 2) do {:halt, acc} else {:cont, acc} end end) end )