diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index d1777759e6..9ad4ad8d9e 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -10361,7 +10361,7 @@ SELECT NULLIF(value, '(none)') ...
int
returns upper bound of the requested array dimension
- array_upper(ARRAY[1,2,3,4], 1)
+ array_upper(ARRAY[1,8,3,7], 1)
4