WolframLang: Function Doc String
you can give your function (or any Symbol) a docstring, like this:
add2::usage = "add2[x] returns x plus 2."
When user type ?add2
, the usage string will be shown.
The FullForm Syntax of
symbol::usage
is
MessageName[ symbol , "usage" ]