Skip to content

Commit 0121d05

Browse files
committed
Update manual.
1 parent 90544ab commit 0121d05

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

manual/manual/refman/exten.etex

+6-1
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,11 @@ Some attributes are understood by the type-checker:
14631463
Can be applied to most kind of items in signatures or
14641464
structures. When the element is later referenced, a warning (3) is
14651465
triggered. If the payload of the attribute is a string literal,
1466-
the warning message includes this text.
1466+
the warning message includes this text. It is also possible
1467+
to use this ``ocaml.deprecated'' as a floating attribute
1468+
on top of an ``.mli'' file (i.e. before any other non-attribute
1469+
item) or on top of an ``.ml'' file without a corresponding
1470+
interface; this marks the unit itself as being deprecated.
14671471
\item
14681472
``ocaml.ppwarning'' or ``ppwarning'', in any context, with
14691473
a string literal payload. The text is reported as warning (22)
@@ -1478,6 +1482,7 @@ module X = struct
14781482
[@@@warning "+9"] (* locally enable warning 9 in this structure *)
14791483
...
14801484
end
1485+
[@@deprecated "Please is module 'Y' instead."]
14811486

14821487
let x = begin[@warning "+9] ... end in ....
14831488

0 commit comments

Comments
 (0)