Commit f245c1c
authored
prefer
These terms can be synonyms, so what's there isn't wrong, but `length` is a less loaded term.
e.g. the example:
[T; size]
_might_ be misconstrued as:
```
// two float32's has a size of 8 bytes
let my_array: [float32; 8] = [1.0, 2.0]; // wrong
```length over size when talking about number of elements vs. bytesize1 parent 80a10e2 commit f245c1c
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments