浏览代码

histogram: fmt

disintegration 8 年之前
父节点
当前提交
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
 		}
 	}
 }