mirror of
https://github.com/gonum/gonum.git
synced 2025-10-11 18:10:10 +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
|
// orthogonal dimension. If a new dimension is desired for a
|
||||||
// domain-specific problem, NewDimension should be used. Integers
|
// domain-specific problem, NewDimension should be used. Integers
|
||||||
// should never be cast as type dimension
|
// should never be cast as type dimension
|
||||||
// // Good: Create a package constant with an init function
|
// // Good: Create a package constant with an init function
|
||||||
// var MyDimension unit.Dimension
|
// var MyDimension unit.Dimension
|
||||||
// init(){
|
// init(){
|
||||||
// MyDimension = NewDimension("my")
|
// MyDimension = NewDimension("my")
|
||||||
// }
|
// }
|
||||||
// main(){
|
// main(){
|
||||||
// var := MyDimension(28.2)
|
// var := MyDimension(28.2)
|
||||||
// }
|
// }
|
||||||
type Dimension int
|
type Dimension int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Reference in New Issue
Block a user