jst 11 yıl önce
ebeveyn
işleme
53e9ca890b
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      converter.go

+ 3 - 3
converter.go

@@ -20,9 +20,9 @@ import "image"
 
 // Keep value in [0,255] range.
 func clampUint8(in int32) uint8 {
-	// casting a negative int to an uint will result in an overflown large int.
-	// this behavior will be exploited here and in other functions to archive
-	// a higher performance.
+	// casting a negative int to an uint will result in an overflown
+	// large uint. this behavior will be exploited here and in other functions
+	// to achieve a higher performance.
 	if uint32(in) < 256 {
 		return uint8(in)
 	}