mirror of
https://github.com/gonum/gonum.git
synced 2025-10-11 10:01:17 +08:00
Fixed formatting of Dimension docstring
This commit is contained in:
16
unittype.go
16
unittype.go
@@ -16,14 +16,14 @@ type Uniter interface {
|
||||
// orthogonal dimension. If a new dimension is desired for a
|
||||
// domain-specific problem, NewDimension should be used. Integers
|
||||
// should never be cast as type dimension
|
||||
// // Good: Create a package constant with an init function
|
||||
// var MyDimension unit.Dimension
|
||||
// init(){
|
||||
// MyDimension = NewDimension("my")
|
||||
// }
|
||||
// main(){
|
||||
// var := MyDimension(28.2)
|
||||
// }
|
||||
// // Good: Create a package constant with an init function
|
||||
// var MyDimension unit.Dimension
|
||||
// init(){
|
||||
// MyDimension = NewDimension("my")
|
||||
// }
|
||||
// main(){
|
||||
// var := MyDimension(28.2)
|
||||
// }
|
||||
type Dimension int
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user