diff --git a/lib/pure/parseutils.nim b/lib/pure/parseutils.nim index 053618b41ca05..1a320c5560ad7 100644 --- a/lib/pure/parseutils.nim +++ b/lib/pure/parseutils.nim @@ -29,13 +29,14 @@ ## import parseutils ## from strutils import Digits, parseInt ## -## let userInput1 = "2019 school start" -## let userInput2 = "3 years back" +## let input1 = "2019 school start" +## let input2 = "3 years back" ## ## let startYear = input1[0..skipWhile(input1, Digits)-1] # 2019 ## let yearsBack = input2[0..skipWhile(input2, Digits)-1] # 3 ## ## echo "Examination is in " & $(parseInt(startYear) + parseInt(yearsBack)) +## # => Examination is in 2022 ## ## ## **See also:**