Fix in code example

Hello!

Please fix this code example because original code did not compile.