diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-10-28 20:27:35 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-10-28 20:27:35 -0400 |
| commit | f1bc7f558f46b63fc7c69f5437e69af3462af345 (patch) | |
| tree | bcf5e2db857fec88fcf080d9dceeb46b2eff673b /src | |
| parent | 2f0b4ddfa9e0ba276e179c383c8ae5d11615e42e (diff) | |
| parent | 90b776e5c7eb898307236af111f6396447ab3a1d (diff) | |
| download | rust-f1bc7f558f46b63fc7c69f5437e69af3462af345.tar.gz rust-f1bc7f558f46b63fc7c69f5437e69af3462af345.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/trpl/syntax-index.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/doc/trpl/syntax-index.md b/src/doc/trpl/syntax-index.md index 7e03bb72cad..0353fa9f39d 100644 --- a/src/doc/trpl/syntax-index.md +++ b/src/doc/trpl/syntax-index.md @@ -60,6 +60,7 @@ * `-` (`- expr`): arithmetic negation. Overloadable (`Neg`). * `-=` (`var -= expr`): arithmetic subtraction & assignment. * `->` (`fn(…) -> type`, `|…| -> type`): function and closure return type. See [Functions], [Closures]. +* `-> !` (`fn(…) -> !`, `|…| -> !`): diverging function or closure. See [Diverging Functions]. * `.` (`expr.ident`): member access. See [Structs], [Method Syntax]. * `..` (`..`, `expr..`, `..expr`, `expr..expr`): right-exclusive range literal. * `..` (`..expr`): struct literal update syntax. See [Structs (Update syntax)]. @@ -189,6 +190,7 @@ [Crates and Modules (Importing External Crates)]: crates-and-modules.html#importing-external-crates [Crates and Modules (Importing Modules with `use`)]: crates-and-modules.html#importing-modules-with-use [Crates and Modules (Re-exporting with `pub use`)]: crates-and-modules.html#re-exporting-with-pub-use +[Diverging Functions]: functions.html#diverging-functions [Enums]: enums.html [Foreign Function Interface]: ffi.html [Functions (Early Returns)]: functions.html#early-returns |
