Added quotations around symbol in panic

This commit is contained in:
btracey
2013-10-11 10:10:59 -07:00
parent eba71ea8b6
commit 49c9af6cf2

View File

@@ -197,7 +197,7 @@ func (u unitPrinters) Swap(i, j int) {
func NewDimension(symbol string) Dimension {
_, ok := dimensions[symbol]
if ok {
panic("unit: dimension string " + symbol + " already used")
panic("unit: dimension string \"" + symbol + "\" already used")
}
symbols = append(symbols, symbol)
d := Dimension(len(symbols))