diff --git a/ecocode-rules-specifications/src/main/rules/EC2/python/EC2.asciidoc b/ecocode-rules-specifications/src/main/rules/EC2/python/EC2.asciidoc index f9de6b834..e2688d834 100644 --- a/ecocode-rules-specifications/src/main/rules/EC2/python/EC2.asciidoc +++ b/ecocode-rules-specifications/src/main/rules/EC2/python/EC2.asciidoc @@ -9,12 +9,12 @@ MATCH-CASE statement has a performance advantage over if – else. - ELSE statements use implicity variable names ! - one variable must be used maximum twice in IF / ELSEIF / ELSE statements at differents hierarchical levels - we can assume that if one variable is used three times or more, we should : -- use a MATCHS-CASE statement instead +- use a MATCH-CASE statement instead - or refactor the code if possible ## Non-compliant Code Example -NON compliant, because `nb` is used 4 times : +Non-compliant, because `nb` is used 4 times : - 2 explicit times in IF statements - 2 implicit times in ELSE statements