From 914ccef7b34927fdfb1f0a517325dccfd12ccaf2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9gory=20Burri?= Date: Fri, 1 Dec 2017 12:57:44 +0100 Subject: [PATCH] Cleaning --- AdventOfCode2017/Day1.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AdventOfCode2017/Day1.fs b/AdventOfCode2017/Day1.fs index 005fd22..1dfea78 100644 --- a/AdventOfCode2017/Day1.fs +++ b/AdventOfCode2017/Day1.fs @@ -1,6 +1,6 @@ module AdventOfCode2017.Day1 -let readDigit d = int d - 48 +let readDigit d = int d - int '0' let solveCaptchaPart1 (captcha : string) = let numbers = captcha.ToCharArray () |> List.ofArray |> List.map readDigit -- 2.45.2