Skip to content

Commit

Permalink
fixed which docstring to 4 element vector
Browse files Browse the repository at this point in the history
  • Loading branch information
cecoeco committed May 15, 2024
1 parent 0cb62a9 commit f529c56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/strings_docstrings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -524,10 +524,12 @@ An integer vector containing indices of matching strings.
# Examples
```jldoctest
julia> str_which(["apple", "banana", "pear", "pineapple"], r"a") # [1, 3]
2-element Vector{Int64}:
julia> str_which(["apple", "banana", "pear", "pineapple"], r"a") # [1, 2, 3, 4]
4-element Vector{Int64}:
1
2
3
4
julia> str_which(["apple", "banana", "pear", "pineapple"], r"a", negate=true) # []
Int64[]
julia> str_which(["apple", "banana", "pear", "pineapple"], "a", negate=true) # []
Expand Down

0 comments on commit f529c56

Please sign in to comment.