diff --git a/util/find-doc-nits b/util/find-doc-nits index 537e132cc3..cd2d32e04a 100755 --- a/util/find-doc-nits +++ b/util/find-doc-nits @@ -96,7 +96,7 @@ sub name_synopsis() } elsif ( $line =~ /typedef.* (\S+);/ ) { # a simple typedef: typedef ... NAME; $sym = $1; - } elsif ( $line =~ /enum (\S*) {/ ) { + } elsif ( $line =~ /enum (\S*) \{/ ) { # an enumeration: enum ... { $sym = $1; } elsif ( $line =~ /#define ([A-Za-z0-9_]+)/ ) {