summaryrefslogtreecommitdiff
path: root/roman.go
diff options
context:
space:
mode:
Diffstat (limited to 'roman.go')
-rw-r--r--roman.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/roman.go b/roman.go
index 7a7c4b3..f57e655 100644
--- a/roman.go
+++ b/roman.go
@@ -21,11 +21,11 @@ var (
m6 = []string{"", "M̅", "M̅M̅", "M̅M̅M̅"}
)
-// Roman represents a roman numeral
+// Roman represents a roman numeral in interval 0 < x < 4e6
type Roman int
func (n Roman) String() string {
- if n < 1 || n >= 4e6 {
+ if n <= 0 || n >= 4e6 {
return ""
}
// this is efficient in Go. the seven operands are evaluated,