Fixed an error in a sample snippet