fix require example usage

Example for require interface was incorrect. This fixes the erroneous documentation.
Merge pull request #1476 from defunctzombie/patch-1

fix require example usage