Fixing syntax errors in code

The first instinct when hitting a syntax error is to attempt to fix it.

If it is the first time we encounter such an error, it is more prudent to look up documentation for it.