Skip to content

Commit f09b097

Browse files
committed
Remove abbreviation
1 parent 08290b9 commit f09b097

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@
8181
import gleam/list
8282
8383
pub fn main() {
84-
let arr = [1, 46]
85-
let _ = 0 < list.length(arr)
86-
let _ = list.length(arr) > 0
84+
let numbers = [1, 46]
85+
let _ = 0 < list.length(numbers)
86+
let _ = list.length(numbers) > 0
8787
}
8888
```
8989

@@ -93,8 +93,8 @@
9393
warning: Inefficient use of `list.length`
9494
┌─ /data/data/com.termux/files/home/test_gleam/src/test_gleam.gleam:5:13
9595
96-
5 │ let _ = 0 < list.length(arr)
97-
│ ^^^^^^^^^^^^^^^^^^^^
96+
5 │ let _ = 0 < list.length(numbers)
97+
│ ^^^^^^^^^^^^^^^^^^^^^^^^
9898
9999
The `list.length` function has to iterate across the whole
100100
list to calculate the length, which is wasteful if you only
@@ -105,8 +105,8 @@
105105
warning: Inefficient use of `list.length`
106106
┌─ /data/data/com.termux/files/home/test_gleam/src/test_gleam.gleam:6:13
107107
108-
6 │ let _ = list.length(arr) > 0
109-
│ ^^^^^^^^^^^^^^^^^^^^
108+
6 │ let _ = list.length(numbers) > 0
109+
│ ^^^^^^^^^^^^^^^^^^^^^^^^
110110
111111
The `list.length` function has to iterate across the whole
112112
list to calculate the length, which is wasteful if you only

0 commit comments

Comments
 (0)