doc: Update annotation code sample.