Fixing code sample/documentation inconsistencies