Fixed documentation

The example as is wouldn't work as the variables are defined differently