[DOC] fix sample code consistencies