Skip to content

Commit 5e091e6

Browse files
authored
Correct formatting of chapter 21 readme.
1 parent 9ac188a commit 5e091e6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

chapter_21/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#Exercises for Chapter 21
1+
# Exercises for Chapter 21
22

3-
##1. Add an error to dict.erl. Compile the module.
3+
## 1. Add an error to dict.erl. Compile the module.
44
I have altered `dict.erl` so a certain line in it will cause it to crash. `dict.erl` is stored in the `exercise_1/` directory.
55

6-
##2. Write a simple test module that calls dict in various ways to uncover the error.
6+
## 2. Write a simple test module that calls dict in various ways to uncover the error.
77
Test module is in `exercise_2/`. In this directory, run:
88

99
erlc exercise_1/dict.erl exercise_2/dict_test.erl
@@ -14,7 +14,7 @@ And then in the Erlang console run the tests:
1414
dict_test:test().
1515

1616

17-
##3. Use the code coverage tool to see how many lines in the dict module are being executed by the test module.
17+
## 3. Use the code coverage tool to see how many lines in the dict module are being executed by the test module.
1818
The code coverage script is stored in the `exercise_3` directory. To run the code coverage analysis compile the code and start an erl console:
1919

2020
erlc exercise_1/dict.erl exercise_2/dict_test.erl exercise_3/dict_test_coverage.erl
@@ -24,7 +24,7 @@ And then in the Erlang console run the command to generate the code coverage res
2424

2525
dict_test_coverage:coverage().
2626

27-
##4. Use the dbg module to find the error in the dict module
27+
## 4. Use the dbg module to find the error in the dict module
2828
The dbg script is stored in the `exercise_4` directory. To run the dbg tracing on the dict module compile the code and start an erl console:
2929

3030
erlc exercise_1/dict.erl exercise_2/dict_test.erl exercise_3/dict_test_coverage.erl

0 commit comments

Comments
 (0)