Fix syntax errors in code examples

A couple of semicolons were missing.