uthcode / learntosolveit

The C Programming Language Companion
http://www.learntosolveit.com
Other
198 stars 1.37k forks source link

Update Ex_1.24_synerrors.c #107

Closed tpun27 closed 5 years ago

tpun27 commented 8 years ago

Updated typos in lines 87-94 in the 'search' function.

Previously, the code checked for brackets while incrementing the parentheses count and checked for parentheses while incrementing the brackets count.

The code now increments the brackets and parentheses count appropriately.

orsenthil commented 5 years ago

Thanks for this contribution, @tpun27 !