Skip to content

Commit

Permalink
Refer to direction argument by name. Closes #153.
Browse files Browse the repository at this point in the history
Prepares for r-lib/vctrs#1375
  • Loading branch information
DavisVaughan committed Jul 1, 2021
1 parent e10be30 commit 7d8c625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/conditions.R
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ is_sorted <- function(x) {
}

compute_non_ascending_locations <- function(x) {
order <- vec_order(x, "asc")
order <- vec_order(x, direction = "asc")

if (is_sorted(order)) {
return(integer())
Expand Down

0 comments on commit 7d8c625

Please sign in to comment.