From a5501c12ab4ab698bae5a0ea3ead8b8399ad418e Mon Sep 17 00:00:00 2001 From: David DE CARVALHO Date: Mon, 7 Aug 2023 10:43:16 +0200 Subject: [PATCH] [ISSUE 142] typo --- .../src/main/rules/EC2/python/EC2.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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