1
0
disintegration 8 жил өмнө
parent
commit
e6400992a4
2 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 1 1
      histogram.go
  2. 1 1
      histogram_test.go

+ 1 - 1
histogram.go

@@ -17,7 +17,7 @@ func Histogram(img image.Image) [256]float64 {
 	var total float64
 
 	if width == 0 || height == 0 {
-		return histogram		
+		return histogram
 	}
 
 	for y := 0; y < height; y++ {

+ 1 - 1
histogram_test.go

@@ -36,7 +36,7 @@ func TestHistogram(t *testing.T) {
 	for _, val := range h {
 		if val != 0 {
 			t.Errorf("Histogram for an empty image should be a zero histogram.")
-			return 
+			return
 		}
 	}
 }