Fixed a code example to make more sense

"future" is not defined in this snippet, which caused me a lot of confusion.