Skip to content

Commit

Permalink
formatted doctests outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
cecoeco committed May 15, 2024
1 parent f529c56 commit d700f25
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/strings_docstrings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -464,16 +464,16 @@ Examples
```jldoctest
julia> str_starts(["apple", "banana", "pear", "pineapple"], r"^p") # [false, false, true, true]
4-element Vector{Bool}:
0
0
1
1
0
0
1
1
julia> str_starts(["apple", "banana", "pear", "pineapple"], r"^p", negate=true) # [true, true, false, false]
4-element Vector{Bool}:
1
1
0
0
1
1
0
0
```
"""

Expand All @@ -495,16 +495,16 @@ Examples
```jldoctest
julia> str_ends(["apple", "banana", "pear", "pineapple"], r"e\$") # [true, false, false, true]
4-element Vector{Bool}:
1
0
0
1
1
0
0
1
julia> str_ends(["apple", "banana", "pear", "pineapple"], r"e\$", negate=true) # [false, true, true, false]
4-element Vector{Bool}:
0
1
1
0
0
1
1
0
```
"""

Expand All @@ -526,10 +526,10 @@ An integer vector containing indices of matching strings.
```jldoctest
julia> str_which(["apple", "banana", "pear", "pineapple"], r"a") # [1, 2, 3, 4]
4-element Vector{Int64}:
1
2
3
4
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 d700f25

Please sign in to comment.