mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
Add missing "usage" text for three commands
I noticed this when testing my `help` command and noticed that `help builtin:` produced three lines of "usage" text that did not include a function or variable name.
This commit is contained in:
parent
8cb125c911
commit
a549dba0ba
|
@ -284,6 +284,10 @@ func multiErrorFn(excs ...Exception) error {
|
|||
|
||||
//elvdoc:fn return
|
||||
//
|
||||
// ```elvish
|
||||
// return
|
||||
// ```
|
||||
//
|
||||
// Raises the special "return" exception. When raised inside a named function
|
||||
// (defined by the [`fn` keyword](language.html#fn)) it is captured by the
|
||||
// function and causes the function to terminate. It is not captured by an
|
||||
|
@ -328,6 +332,10 @@ func returnFn() error {
|
|||
|
||||
//elvdoc:fn break
|
||||
//
|
||||
// ```elvish
|
||||
// break
|
||||
// ```
|
||||
//
|
||||
// Raises the special "break" exception. When raised inside a loop it is
|
||||
// captured and causes the loop to terminate.
|
||||
//
|
||||
|
@ -354,6 +362,10 @@ func breakFn() error {
|
|||
|
||||
//elvdoc:fn continue
|
||||
//
|
||||
// ```elvish
|
||||
// continue
|
||||
// ```
|
||||
//
|
||||
// Raises the special "continue" exception. When raised inside a loop it is
|
||||
// captured and causes the loop to begin its next iteration.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue
Block a user