Skip to content

Commit 733c41c

Browse files
authored
Fix a type typo (#36)
a really cool resource 🤤 thanks for open sourcing it was a bit confused by this typo, figured the correct form by looking at the source: https://erlef.github.io/security-wg/secure_coding_and_deployment_hardening/elixir_truthy
1 parent 734eb56 commit 733c41c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/5-elixir.livemd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Benchwarmer.benchmark(fn -> Constant.compare(user_input, password) end)
160160

161161
Elixir has a concept of a "truthy" value, where anything other than `false` or `nil` is considered `true`.
162162

163-
This can lead to subtle and unexpected bugs, especially when interworking with Erlang libraries. Imagine a library that performs cryptographic signature validation, with a return type of `{:ok | {:error, atom()}`. If this function were mistakenly called in a context where a "truthy" value is expected, the return value would always be considered true.
163+
This can lead to subtle and unexpected bugs, especially when interworking with Erlang libraries. Imagine a library that performs cryptographic signature validation, with a return type of `:ok | {:error, atom()}`. If this function were mistakenly called in a context where a "truthy" value is expected, the return value would always be considered true.
164164

165165
### Prevention
166166

0 commit comments

Comments
 (0)