Skip to content

Commit e899b81

Browse files
authored
Merge pull request #2 from tyboyd02/feature
Clean Up
2 parents 9f14ddc + 6c306fe commit e899b81

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ const (
1414
)
1515

1616
const (
17-
usage string = `This program is a calcultor that follows PEMDAS
17+
usage string = `This program is a calculator that follows PEMDAS
1818
1919
Supported Symbols: (, ), ^, *, /, +, -
2020
21-
Usage examlpes:
22-
"4.2+18/(9-3)"
21+
Usage examples:
22+
go-cli-calc 2+2*2
23+
OUTPUT: 6
24+
25+
go-cli-calc "4.2 + 18 / (9 - 3)"
2326
OUTPUT: 7.2
2427
25-
"4+18/(9-3)=7.2"
26-
OUTPUT: TRUE
27-
28-
NOTES
29-
* You only need "" if you have whitespace in your equation
28+
go-cli-calc "(1-.5)+2*9+2"
29+
OUTPUT: 20.5
3030
`
3131
)
3232

0 commit comments

Comments
 (0)