[1.7.x] Fixed #23578 -- Changed examples in docs to use patterns

missing trailing comma