summary refs log tree commit diff
path: root/src/doc/trpl/glossary.md
blob: 156f33748673b34a5c91b7ffed743143efe108e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% Glossary

Not every Rustacean has a background in systems programming, nor in computer
science, so we've added explanations of terms that might be unfamiliar.

### 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.