Skip to content

Commit 993a3bd

Browse files
committed
Refactor: Improve docstring for symtype
1 parent 28ff6da commit 993a3bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/types.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ end
100100
###
101101

102102
"""
103-
symtype(x)
103+
$(SIGNATURES)
104104
105-
Returns the numeric type of `x`. By default this is just `typeof(x)`.
105+
Returns the [numeric type](https://docs.julialang.org/en/v1/base/numbers/#Standard-Numeric-Types)
106+
of `x`. By default this is just `typeof(x)`.
106107
Define this for your symbolic types if you want [`SymbolicUtils.simplify`](@ref) to apply rules
107108
specific to numbers (such as commutativity of multiplication). Or such
108109
rules that may be implemented in the future.

0 commit comments

Comments
 (0)