fix require example usage

Example for require interface was incorrect. This fixes the erroneous documentation.