From fd1fe811806e4fcffaa733f185a1e582d16aeea6 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Thu, 29 Feb 2024 09:58:35 +0200 Subject: [PATCH] roman-numberals.md: Don't use uint16 too early (#741) It's only introduced later in the text. The tests at the current stage all expect int. --- roman-numerals.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roman-numerals.md b/roman-numerals.md index 42a89747..bf8912ba 100644 --- a/roman-numerals.md +++ b/roman-numerals.md @@ -644,8 +644,8 @@ var allRomanNumerals = RomanNumerals{ } // later.. -func ConvertToArabic(roman string) uint16 { - var arabic uint16 = 0 +func ConvertToArabic(roman string) int { + var arabic = 0 for _, numeral := range allRomanNumerals { for strings.HasPrefix(roman, numeral.Symbol) {