Fix the example of not using "default" in "switch" to compile.

Without "return" at the end of the function, the example doesn't compile with
some common compilers, such as MSVC.