diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index a56f263e63..26f863b326 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -6312,7 +6312,7 @@ SELECT regexp_matches('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
to_char(485, 'L999')
- 'DM 485
+ 'DM 485'
to_char(485, 'RN')