fix view pattern example

[ci-skip]