Commit Graph

26 Commits

Author SHA1 Message Date
Sam Zheng 6e6e8b4219
redundant word removed
"struct expressions can be in used in these situations" => "struct expressions can be used in these situations"
2023-03-29 14:46:43 +08:00
Michael Goulet 4aff5bed5e Revert "Unify while/while let and if/if let expressions."
This reverts commit b83d8e616c.
2022-08-14 21:00:49 +00:00
Eric Huss b83d8e616c Unify while/while let and if/if let expressions.
This updates the `if` and `while` expressions so that they each are
presented as a single expression kind with multiple condition operators
instead of being logically separated from their `let` counterparts.

This also includes various fixes and additions.
2022-07-25 15:42:28 -07:00
Eric Huss e4edc3edba
Fix broken link 2022-01-30 08:25:45 -08:00
Eric Huss a5455167ad
Remove trailing space 2022-01-30 08:08:52 -08:00
pushkine b057b5259a
Update struct-expr.md 2022-01-30 02:00:55 +01:00
Eric Huss 37ca438c9a Remove inner attributes from non-block expressions. 2021-06-24 15:20:40 -07:00
Havvy (Ryan Scheel) d91074bf26 Say Field Record Update only works for structs.
This is a minimal change, as I'd like to make more massive changes
in a separate PR touching on most of the page.
2021-02-14 12:31:58 -08:00
Havvy (Ryan Scheel) 4471b0efbc Address review comments w.r.t. remove enum variant expr 2021-02-14 12:26:59 -08:00
Havvy (Ryan Scheel) d8cbe4eedb Remove enum variant expression page
It is quite redundant with the (IMO badly named) struct expression.
Perhaps we should rename it to something else? "Named value expression"?
2021-02-14 11:54:46 -08:00
Havvy (Ryan Scheel) eb52903293 One sentence is one line src/expressions/* 2021-02-13 22:10:46 -08:00
Eric Huss 1a36151029 Update tuple index token. 2020-05-16 15:03:57 -07:00
Eric Huss dd637f8e60 Fix some links.
A few that have slipped through the cracks.
2019-07-16 15:47:07 -07:00
Eric Huss b0e0ad6490 Update to mdbook 0.3.
This updates to mdbook 0.3 which uses relative links, which are much better
(the pages mostly work when viewing on GitHub for example).
2019-07-15 16:51:25 -07:00
Eric Huss 2fca10d390 Remove unused link references.
Verified the output is the same except for the one link in `macros.md` that
I corrected.
2019-04-09 14:26:37 -07:00
Matthew Jasper 37b648ac1a Address review comments 2019-01-27 15:13:37 +00:00
Matthew Jasper 6e1eef6576 Clarify what access struct updates do 2019-01-27 13:12:31 +00:00
Mazdak Farrokhzad 28fa730f0e move link refs to bottom of pages. 2019-01-03 19:07:41 +01:00
Mazdak Farrokhzad e381b4493d explain scrutinee in glossary. 2019-01-03 04:04:27 +01:00
Mazdak Farrokhzad 29638c581a head expression => scrutinee expression 2018-12-31 18:32:50 +01:00
Eric Huss 49f5c9a700 Fix statements and add some missing attributes. 2018-10-19 15:01:20 -07:00
Eric Huss 7cee92b2d7 Address review comments. 2018-09-25 08:55:34 -07:00
Eric Huss 03048a24f5 Grammar: Add struct expression.
This includes some rework and expansion of the contents.
2018-09-23 13:23:48 -07:00
Eric Huss 855df8ac6a Use backslash instead of whitespace for hard breaks.
The only formatting change is to add breaks on the weak keywords in
`keywords.md`.
2018-06-24 14:43:38 -07:00
Havvy 4ad306ccde lvalue and rvalue to place and value expressions 2017-12-08 10:36:05 -08:00
Bráulio Bezerra ae361e1a09 Divide items and expressions into sections
- Links in other parts of the reference were updated
- The following sections were moved inside others:
  * grouped expressions into operator-expr.md
  * while let into loop-expr.md
  * if let into if-expr.md
  * tuple indexing into tuple-expr.md
2017-10-02 08:56:58 -03:00