summaryrefslogtreecommitdiff
path: root/roman.go
diff options
context:
space:
mode:
Diffstat (limited to 'roman.go')
-rw-r--r--roman.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/roman.go b/roman.go
index b5886ba..7a7c4b3 100644
--- a/roman.go
+++ b/roman.go
@@ -31,5 +31,5 @@ func (n Roman) String() string {
// this is efficient in Go. the seven operands are evaluated,
// then a single allocation is made of the exact size needed for the result.
return m6[n/1e6] + m5[n%1e6/1e5] + m4[n%1e5/1e4] + m3[n%1e4/1e3] +
- m2[n%1e3/1e2] + m1[n%100/10] + m0[n%10]
+ m2[n%1e3/1e2] + m1[n%1e2/1e1] + m0[n%1e1]
}