Skip to content

Commit aeaf752

Browse files
authored
A small mistake in Finding Message Queue Length of a Process (#42)
Typo in argument passing in Elixir Tips 9
1 parent a292c58 commit aeaf752

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2058,7 +2058,7 @@ Did you see that, we have only one message in queue as we handled `:hello` messa
20582058
Again, we handle the left over message `:hi` and this time the length will be `0` Of course it will be as there are no more messages to handle.
20592059

20602060
```elixir
2061-
iex> receive do: (:hello -> "I GOT HI")
2061+
iex> receive do: (:hi -> "I GOT HI")
20622062
"I GOT HI"
20632063

20642064
iex> Process.info(self, :message_queue_len)

part9.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Did you see that, we have only one message in queue as we handled `:hello` messa
189189
Again, we handle the left over message `:hi` and this time the length will be `0` Of course it will be as there are no more messages to handle.
190190

191191
```elixir
192-
iex> receive do: (:hello -> "I GOT HI")
192+
iex> receive do: (:hi -> "I GOT HI")
193193
"I GOT HI"
194194

195195
iex> Process.info(self, :message_queue_len)

0 commit comments

Comments
 (0)