mirror of
https://github.com/rwinkhart/convertroman.git
synced 2026-08-28 04:46:32 -04:00
Use vinculum in README example
This commit is contained in:
@@ -42,10 +42,11 @@ func main() {
|
||||
fmt.Println(roman == "iv") // True
|
||||
|
||||
// capital (slightly slower)
|
||||
// this example uses a number in vinculum notation to show that ANSI escape codes are used to provide the overline
|
||||
roman = rom.FromIntCapital(4)
|
||||
if roman == "OOB" {
|
||||
panic("Input integer is out of bounds (greater than 3,999,999)")
|
||||
}
|
||||
fmt.Println(roman == "IV") // True
|
||||
fmt.Println(roman == "\033[53mIV\033[0mLXV") // True
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user