CND code in the snippet doesn't seem to match the code in this repo

Am I missing something here?

Updated docs to match the code.