Modified 'result' to 'res' to follow the example conventions used in the rest of the document

All of the other examples use 3/4 letter variables for the example code.  Updating this example to follow that loose convention.