Skip to content

Commit

Permalink
Update glossary.md (#1455)
Browse files Browse the repository at this point in the history
Expand a few random entries of the glossary. This is just to remind
people that the glossary exists and that we should work on making it
complete.

Part of #1466.
  • Loading branch information
mgeisler authored Nov 10, 2023
1 parent 42d69b7 commit b7832d7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ Also, please keep the hard line breaks to ensure a nice formatting.
- keyword:\
- library:\
- macro:\
- main function:\
Rust macros can be recognized by a `!` in the name. Macros are used
when normal functions are not enough. A typical example is `format!`,
which takes a variable number of arguments, which isn't supported by
Rust functions.
- `main` function:\
Rust programs start executing with the `main` function.
- match:\
- memory leak:\
- method:\
Expand All @@ -92,6 +97,8 @@ Also, please keep the hard line breaks to ensure a nice formatting.
- standard library:\
- static:\
- string:\
A data type storing textual data. See
[`String` vs `str`](basic-syntax/string-slices.html) for more.
- struct:\
- test:\
- thread:\
Expand All @@ -102,5 +109,10 @@ Also, please keep the hard line breaks to ensure a nice formatting.
- undefined behavior:\
- union:\
- unit test:\
Rust comes with built-in support for running small unit tests and larger
integration tests. See [Unit Tests](testing/unit-tests.html).
- unsafe:\
The subset of Rust which allows you to trigger _undefined behavior_.
See [Unsafe Rust](unsafe.html).
- variable:\
A memory location storing data. Variables are valid in a _scope_.

0 comments on commit b7832d7

Please sign in to comment.