Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a77d03a

Browse files
committedFeb 4, 2020
add warning message to isimmutable documentation
1 parent 6b76c59 commit a77d03a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎base/deprecated.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ end
194194
# BEGIN 1.5 deprecations
195195
"""
196196
isimmutable(v) -> Bool
197-
197+
!!! warning
198+
Consider using `!ismutable(v)` instead, as `isimmutable(v)` will be replaced by `!ismutable(v)` in a future release.
198199
Return `true` iff value `v` is immutable. See [Mutable Composite Types](@ref)
199200
for a discussion of immutability. Note that this function works on values, so if you give it
200201
a type, it will tell you that a value of `DataType` is mutable.

0 commit comments

Comments
 (0)
Please sign in to comment.