Skip to content

Commit

Permalink
Fix documentation of iposint and inegint
Browse files Browse the repository at this point in the history
The documentation incorrectly stated that the functions take an
instance of a type, instead of the type itself.
  • Loading branch information
Seelengrab committed Aug 13, 2023
1 parent d974086 commit af06308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ generate(rng, ::Type{String}) = randstring(rng, typemin(Char):"\xf7\xbf\xbf\xbf"
#######################

"""
iposint(::T) where T <: Union{Int8, Int16, Int32, Int64, Int128}
iposint(::Type{T}) where T <: Union{Int8, Int16, Int32, Int64, Int128}
An integrated shrinker producing positive values of type `T`.
"""
Expand All @@ -58,7 +58,7 @@ iposint(T::Type{<:Base.BitSigned}) = map(itype(T)) do v
end

"""
inegint(::T) where T <: Union{Int8, Int16, Int32, Int64, Int128}
inegint(::Type{T}) where T <: Union{Int8, Int16, Int32, Int64, Int128}
An integrated shrinker producing negative values of type `T`.
"""
Expand Down

0 comments on commit af06308

Please sign in to comment.