Make text() return a preceding 0s

This commit is contained in:
Aaron Bieber 2019-08-02 19:00:56 -06:00
parent 3938098a07
commit dc9899f777
1 changed files with 1 additions and 1 deletions

View File

@ -13,6 +13,6 @@ public struct Beat {
}
public func text() -> String {
return "\(db)"
return String(format: "%03d", db)
}
}