Skip to content

Commit 62d2641

Browse files
committed
Fix formatting of code example for array_has_duplicates
1 parent eb7ef88 commit 62d2641

File tree

1 file changed

+3
-3
lines changed
  • presto-docs/src/main/sphinx/functions

1 file changed

+3
-3
lines changed

presto-docs/src/main/sphinx/functions/array.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ Array Functions
7878
.. function:: array_has_duplicates(array(T)) -> boolean
7979

8080
Returns a boolean: whether ``array`` has any elements that occur more than once.
81-
Throws an exception if any of the elements are rows or arrays that contain nulls.
81+
Throws an exception if any of the elements are rows or arrays that contain nulls. ::
8282

83-
SELECT array_has_duplicates(ARRAY[1, 2, null, 1, null, 3]) -- true
84-
SELECT array_has_duplicates(ARRAY[ROW(1, null), ROW(1, null)]) -- "map key cannot be null or contain nulls"
83+
SELECT array_has_duplicates(ARRAY[1, 2, null, 1, null, 3]) -- true
84+
SELECT array_has_duplicates(ARRAY[ROW(1, null), ROW(1, null)]) -- "map key cannot be null or contain nulls"
8585

8686
.. function:: array_intersect(x, y) -> array
8787

0 commit comments

Comments
 (0)