Update sample snippet