mirror of
https://github.com/gonum/gonum.git
synced 2025-10-21 14:19:35 +08:00
Added quotations around symbol in panic
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user