Correct use of deprecated function in example.

Change-Id: I2cf5915e02ae2915c875f62f85c46afb0bed32cc
Reviewed-on: http://review.couchbase.org/39147
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Tested-by: Brett Lawson <brett19@gmail.com>