example code of preallocated checkin

The example code in preallocated checkin section fixed.