Skip to content

Commit 797d1d0

Browse files
Fix typo in supervisor-and-application.markdown (elixir-lang#1363)
1 parent fab2a02 commit 797d1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting-started/mix-otp/supervisor-and-application.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you have prior programming experience, you may be wondering: "could we just g
1919

2020
Therefore, an Elixir developer prefers to "let it crash" or "fail fast". And one of the most common ways we can recover from a failure is by restarting whatever part of the system crashed.
2121

22-
For example, imagine your computer, router, printer, or whatever device is not working properly. How do you often fix it by restarting it? Once we restart the device, we reset the device back to its initial state, which is well-tested and guaranteed to work. In Elixir, we apply this same approach to software: whenever a process crashes, we start a new process to perform the same job as the crashed process.
22+
For example, imagine your computer, router, printer, or whatever device is not working properly. How often do you fix it by restarting it? Once we restart the device, we reset the device back to its initial state, which is well-tested and guaranteed to work. In Elixir, we apply this same approach to software: whenever a process crashes, we start a new process to perform the same job as the crashed process.
2323

2424
In Elixir, this is done by a Supervisor. A Supervisor is a process that supervises other processes and restarts them whenever they crash. To do so, Supervisors manage the whole life-cycle of any supervised processes, including startup and shutdown.
2525

0 commit comments

Comments
 (0)