check-spacing: fix error message

The check for whitespace before comma or semicolon referred
to comma as colon.
This commit is contained in:
Ján Tomko 2016-06-15 16:05:08 +02:00
parent cab2b44d8b
commit 3cc13e005d

View File

@ -138,7 +138,7 @@ foreach my $file (@ARGV) {
if ($data =~ /\s[;,]/) {
unless ($data =~ /\S; ; / ||
$data =~ /^\s+;/) {
print "Whitespace before (semi)colon:\n";
print "Whitespace before semicolon or comma:\n";
print "$file:$.: $line";
$ret = 1;
}