Skip to content

Commit 43cf9af

Browse files
committed
Fix docs
1 parent 0e9bd2c commit 43cf9af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/elixir/lib/gen_server.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -761,11 +761,11 @@ defmodule GenServer do
761761
@doc """
762762
This function is called by a `GenServer` process in the following situations:
763763
764-
* `sys:get_status/1,2` is invoked to get the `GenServer` status.
764+
* [`:sys.get_status/1,2`](`:sys.get_status/1`) is invoked to get the `GenServer` status.
765765
* The `GenServer` process terminates abnormally and logs an error.
766766
767767
This callback is used to limit the status of the process returned by
768-
`sys:get_status/1,2` or sent to logger.
768+
[`:sys.get_status/1,2`](`:sys.get_status/1`) or sent to logger.
769769
770770
The callback gets a map `status` describing the current status and shall return
771771
a map `new_status` with the same keys, but it may transform some values.
@@ -780,7 +780,7 @@ defmodule GenServer do
780780
def format_status(status) do
781781
Map.new(status, fn
782782
{:state, state} -> {:state, Map.delete(state, :private_key)}
783-
{:message, {:password, _} -> {:message, {:password, "redacted"}}
783+
{:message, {:password, _}} -> {:message, {:password, "redacted"}}
784784
key_value -> key_value
785785
end)
786786
end

0 commit comments

Comments
 (0)