Documentation: fix snippet creation