Skip to content

Commit 5eaa83e

Browse files
committed
Separate out struct field declarations
1 parent 0aed073 commit 5eaa83e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

internal/color.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ package internal
33
import "github.com/google/go-cmp/cmp"
44

55
type Color struct {
6-
R, G, B float64
6+
R float64
7+
G float64
8+
B float64
79
}
810

911
func NewColor(r, g, b float64) Color {

internal/matrix.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ var Identity4 = NewMatrix4([]float64{
1212
})
1313

1414
type Matrix struct {
15-
rows, cols int
16-
elems []float64
15+
rows int
16+
cols int
17+
elems []float64
1718
}
1819

1920
func NewMatrix(elems []float64, numRows, numCols int) Matrix {

0 commit comments

Comments
 (0)