[scala.snippet]: change function def snippet