Skip to content

Commit

Permalink
Fix typo in README
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Aug 22, 2023
1 parent 88f6fa8 commit 0e4ec30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ func GetWords(number int) string {

As you see above codes are the same, but the second code are easier to understand, that is why the cognitive complexity score are lower compare to the first one.

## Comparison with cyclometic complexity
## Comparison with cyclomatic complexity

### Example 1
#### Cyclometic complexity
#### Cyclomatic complexity
```go
func GetWords(number int) string { // +1
switch number {
Expand Down

0 comments on commit 0e4ec30

Please sign in to comment.