Skip to content

Commit 593b931

Browse files
correct documentation
1 parent bf4b8c4 commit 593b931

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Object_Methods/Vector_Methods.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ Store elements from tuples into a vector.
222222
223223
# Examples
224224
```jldoctest
225+
julia> using SuiteSparseGraphBLAS
226+
227+
julia> GrB_init(GrB_NONBLOCKING)
228+
GrB_SUCCESS::GrB_Info = 0
229+
225230
julia> V = GrB_Vector{Float64}()
226231
GrB_Vector{Float64}
227232
@@ -358,9 +363,6 @@ GrB_SUCCESS::GrB_Info = 0
358363
359364
julia> GrB_Vector_extractElement(V, 2)
360365
3.2
361-
362-
julia> GrB_Vector_extractElement(V, 1)
363-
GrB_NO_VALUE::GrB_Info = 1
364366
```
365367
"""
366368
function GrB_Vector_extractElement(v::GrB_Vector{T}, i::U) where {T <: valid_types, U <: GrB_Index}

0 commit comments

Comments
 (0)