File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ linker script will collect all the symbols in the `.log` sections of input
189
189
object files and put them in an output ` .log ` section. We have seen this pattern
190
190
in the [ Memory layout] chapter.
191
191
192
- [ Memory layout ] : / memory-layout.html
192
+ [ Memory layout ] : memory-layout.html
193
193
194
194
The new bit here is the ` (INFO) ` part; this tells the linker that this section
195
195
is a non-allocatable section. Non-allocatable sections are kept in the ELF
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ variable called `LOGGER` to log the message. This variable *is* the global
83
83
logger that's defined somewhere else; that's why we use the ` extern ` block. We
84
84
saw this pattern in the [ main interface] chapter.
85
85
86
- [ main interface ] : / main.html
86
+ [ main interface ] : main.html
87
87
88
88
We need to declare a type for ` LOGGER ` or the code won't type check. We don't
89
89
know the concrete type of ` LOGGER ` at this point but we know, or rather require,
@@ -93,7 +93,7 @@ The rest of the macro expansion looks very similar to the expansion of the local
93
93
version of the ` log! ` macro so I won't explain it here as it's explained in the
94
94
[ previous] chapter.
95
95
96
- [ previous ] : / logging.html
96
+ [ previous ] : logging.html
97
97
98
98
Now that we know that ` LOGGER ` has to be a trait object it's clearer why we
99
99
omitted the associated ` Error ` type in ` GlobalLog ` . If we had not omitted then
You can’t perform that action at this time.
0 commit comments