1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-25 23:49:54 +02:00

Update glossary.md (#1455)

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.
This commit is contained in:
Martin Geisler 2023-11-10 15:15:32 +01:00 committed by GitHub
parent 42d69b7e5d
commit b7832d7856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:\
@ -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:\
@ -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_.