From 0a33d91e4152162f412c4441f63438920e416221 Mon Sep 17 00:00:00 2001 From: James Adams Date: Fri, 25 Aug 2023 17:00:38 +0100 Subject: [PATCH] Correct circle area example --- _development/coding_style.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_development/coding_style.md b/_development/coding_style.md index c5fce5d..0d8fd9b 100644 --- a/_development/coding_style.md +++ b/_development/coding_style.md @@ -108,15 +108,15 @@ They'll help you to understand why you chose such values on the past. A good example: ```perl -my $circle_area = $radio * $PI * $PI; Readonly my $PI => 3.141592; +my $circle_area = $radius ** 2 * $PI; ``` And the bad example: ```perl # Oops! I missed a decimal somewhere! -my $circle_area = $radio * 3.14159 * 3.141592; +my $circle_area = $radius ** 2 * 3.14159; ``` ### Module header