Skip to content

Commit 9f89ee7

Browse files
penelopeysmmhauru
andauthored
Improve float_type_with_fallback docstring
Co-authored-by: Markus Hauru <markus@mhauru.org>
1 parent 37ce739 commit 9f89ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ end
777777
"""
778778
float_type_with_fallback(T::DataType)
779779
780-
Return `T` if it is a Real; otherwise return `float(Real)`.
780+
Return `T` if it is a non-integer Real, `float(T)` for integer types, and `float(Real)` otherwise.
781781
"""
782782
float_type_with_fallback(::Type) = float(Real)
783783
float_type_with_fallback(::Type{Union{}}) = float(Real)

0 commit comments

Comments
 (0)