In Scala val is used for creating constants and the naming convention for Scala Constants is to use UpperCamelCase convention. (https://docs.scala-lang.org/style/naming-conventions.html#constants-values-variable-and-methods)
A generalization for this rule should be all vals should be in UpperCamelCase.
i.e. if a variable is declared using val keyword its name should be in UpperCamelCase. However I see examples on Scala's website exploiting this rule.
What am I missing here?