Fixes syntax error in examples

Some function calls had no matching `)`.