From 093fcb4e28775e046c6503aa7eb150c27514ea28 Mon Sep 17 00:00:00 2001 From: Ettore Dreucci Date: Wed, 2 Dec 2020 12:48:44 +0100 Subject: [PATCH] AoC 2020: day 1, corrected docstrings Signed-off-by: Ettore Dreucci --- 2020/solutions/day_1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2020/solutions/day_1.py b/2020/solutions/day_1.py index d24a269..251f03f 100644 --- a/2020/solutions/day_1.py +++ b/2020/solutions/day_1.py @@ -12,7 +12,7 @@ def read_input(input_path: str) -> list: return entries def part1(entries: list) -> int: - """part1 solver take a set of int and return an int""" + """part1 solver take a list of int and return an int""" for x in entries: complement = 2020 - x if complement in entries: @@ -20,7 +20,7 @@ def part1(entries: list) -> int: return None def part2(entries: list) -> int: - """part2 solver take a set of int and return an int""" + """part2 solver take a list of int and return an int""" for x, i in enumerate(entries): for y in entries[i:]: complement = 2020 - x - y