Fix sample code snippet formatting