reference/promise-types/access.markdown: fix examples and add snippets