Skip to content

Commit f1bc7f5

Browse files
committed
Rollup merge of #29435 - djrollins:diverging-function-doc, r=Manishearth
I put the reference under the function return operator `->` rather than near the suggested `!` operators as I thought it was more relevant there. Resolves #29431
2 parents 2f0b4dd + 90b776e commit f1bc7f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/trpl/syntax-index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
* `-` (`- expr`): arithmetic negation. Overloadable (`Neg`).
6161
* `-=` (`var -= expr`): arithmetic subtraction & assignment.
6262
* `->` (`fn(…) -> type`, `|…| -> type`): function and closure return type. See [Functions], [Closures].
63+
* `-> !` (`fn(…) -> !`, `|…| -> !`): diverging function or closure. See [Diverging Functions].
6364
* `.` (`expr.ident`): member access. See [Structs], [Method Syntax].
6465
* `..` (`..`, `expr..`, `..expr`, `expr..expr`): right-exclusive range literal.
6566
* `..` (`..expr`): struct literal update syntax. See [Structs (Update syntax)].
@@ -189,6 +190,7 @@
189190
[Crates and Modules (Importing External Crates)]: crates-and-modules.html#importing-external-crates
190191
[Crates and Modules (Importing Modules with `use`)]: crates-and-modules.html#importing-modules-with-use
191192
[Crates and Modules (Re-exporting with `pub use`)]: crates-and-modules.html#re-exporting-with-pub-use
193+
[Diverging Functions]: functions.html#diverging-functions
192194
[Enums]: enums.html
193195
[Foreign Function Interface]: ffi.html
194196
[Functions (Early Returns)]: functions.html#early-returns

0 commit comments

Comments
 (0)