Fix sample code in dogstring for snapshot.