Error strings should not be capitalized (unless beginning with proper

nouns or acronyms) or end with punctuation, since they are usually
printed following other context.
This commit is contained in:
Daniel Esteban
2019-07-06 16:57:07 +02:00
committed by Ron Evans
parent 8534e67c83
commit cb49783f18
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ func (d *Device) GetPixel(x int16, y int16) bool {
func (d *Device) SetBuffer(buffer []byte) error {
if int16(len(buffer)) != d.bufferSize {
//return ErrBuffer
return errors.New("Wrong size buffer")
return errors.New("wrong size buffer")
}
for i := int16(0); i < d.bufferSize; i++ {
d.buffer[i] = buffer[i]