mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-25 23:14:12 +00:00
glossary
This commit is contained in:
parent
29ff00cc97
commit
4cf4e8bc0c
@ -36,3 +36,4 @@
|
||||
* [Macros](macros.md)
|
||||
* [Compiler Plugins](plugins.md)
|
||||
* [Conclusion](conclusion.md)
|
||||
* [Glossary](glossary.md)
|
||||
|
17
src/doc/trpl/glossary.md
Normal file
17
src/doc/trpl/glossary.md
Normal file
@ -0,0 +1,17 @@
|
||||
% Glossary
|
||||
|
||||
In this section we briefly explain terms that you may not be familiar with.
|
||||
|
||||
This book avoids, as much as possible, overcomplicated terms. Nevertheless, the following were deemed important enough that omitting them would be a disservice to the reader.
|
||||
|
||||
### Arity
|
||||
|
||||
Arity refers to the number of arguments a function or operation takes.
|
||||
|
||||
```rust
|
||||
let x = (2, 3);
|
||||
let y = (4, 6);
|
||||
let z = (8, 2, 6);
|
||||
```
|
||||
|
||||
In the example above `x` and `y` have arity 2. `z` has arity 3.
|
Loading…
Reference in New Issue
Block a user