Skip to content

Commit bc2e641

Browse files
committed
fix: don't mention hd/1 or tl/1 in elixir usage rules
1 parent 3a5e4cd commit bc2e641

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

priv/builtins/elixir.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- Don't use `Enum` functions on large collections when `Stream` is more appropriate
1414
- Avoid nested `case` statements - refactor to a single `case`, `with` or separate functions
1515
- Don't use `String.to_atom/1` on user input (memory leak risk)
16-
- Lists and enumerables cannot be indexed with brackets. Use pattern matching, `Enum` functions or `hd/1` and `tl/1`.
16+
- Lists and enumerables cannot be indexed with brackets. Use pattern matching or `Enum` functions.
1717

1818
## Function Design
1919
- Use guard clauses: `when is_binary(name) and byte_size(name) > 0`

0 commit comments

Comments
 (0)