Fixed coding errors in unit example

This commit is contained in:
btracey
2013-10-09 10:12:57 -07:00
parent 52e857f38a
commit 7cae6014b0
2 changed files with 7 additions and 3 deletions

View File

@@ -35,6 +35,8 @@ type Dimensions map[Dimension]int
var lastCreatedDimension Dimension = lastPackageDimension
var newUnitMutex *sync.Mutex = &sync.Mutex{} // so there is no race condition for dimension
//var dimensionStrings map[Dimension]string = make()
// NewDimension returns a new dimension variable which will have a
// unique representation across packages to prevent accidental overlap.
// NewDimension should only be called for unit types that are orthogonal