Skip to content

Commit bcb8a00

Browse files
authored
only Text and HTML *exports* should be deprecated (#43532)
1 parent 9555548 commit bcb8a00

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

base/docs/utils.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ You can also use a stream for large amounts of data:
2121
2222
!!! warning
2323
`HTML` is currently exported to maintain
24-
backwards-compatibility, but is considered
25-
to be deprecated and should not be used.
24+
backwards compatibility, but this export
25+
is deprecated. It is recommended to use
26+
this type as `Docs.HTML` or to explicitly
27+
import it from `Docs`.
2628
"""
2729
mutable struct HTML{T}
2830
content::T
@@ -77,8 +79,10 @@ You can also use a stream for large amounts of data:
7779
7880
!!! warning
7981
`Text` is currently exported to maintain
80-
backwards-compatibility, but is considered
81-
to be deprecated and should not be used.
82+
backwards compatibility, but this export
83+
is deprecated. It is recommended to use
84+
this type as `Docs.Text` or to explicitly
85+
import it from `Docs`.
8286
"""
8387
mutable struct Text{T}
8488
content::T

0 commit comments

Comments
 (0)