Fixed typo in isDirty example

It should be a get call instead of a set call
Merge pull request #1772 from ujjwalt/patch-1

Fixed typo in isDirty example