Skip to content

Commit 1b6ae52

Browse files
committed
update stdlib_selection typo
1 parent 22c1be0 commit 1b6ae52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/specs/stdlib_selection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Generic subroutine.
159159

160160
`array` : shall be a rank one array of any of the types:
161161
`integer(int8)`, `integer(int16)`, `integer(int32)`, `integer(int64)`,
162-
`real(sp)`, `real(dp)`, `real(xdp), `real(qp)`. It is an `intent(in)` argument. On input it is
162+
`real(sp)`, `real(dp)`, `real(xdp)`, `real(qp)`. It is an `intent(in)` argument. On input it is
163163
the array in which we search for the k-th smallest entry.
164164

165165
`indx`: shall be a rank one array with the same size as `array`, containing all integers
@@ -198,7 +198,7 @@ The code does not support `NaN` elements in `array`; it will run, but there is
198198
no consistent interpretation given to the order of `NaN` entries of `array`
199199
compared to other entries.
200200

201-
While it is essential that that `indx` contains a permutation of the integers `1:size(array)`,
201+
While it is essential that `indx` contains a permutation of the integers `1:size(array)`,
202202
the code does not check for this. For example if `size(array) == 4`, then we could have
203203
`indx = [4, 2, 1, 3]` or `indx = [1, 2, 3, 4]`, but not `indx = [2, 1, 2, 4]`. It is the user's
204204
responsibility to avoid such errors.

0 commit comments

Comments
 (0)