Fix in the snippet generating function docs