Fix typo in collection.set example

The example for collection.set called an undefined function "update". Fixes #2396.