Skip to content

Commit

Permalink
Correct circle area example
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Aug 30, 2023
1 parent 5de39df commit 0a33d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _development/coding_style.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a33d91

Please sign in to comment.