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
189189object files and put them in an output ` .log ` section. We have seen this pattern
190190in the [ Memory layout] chapter.
191191
192- [ Memory layout ] : / memory-layout.html
192+ [ Memory layout ] : memory-layout.html
193193
194194The new bit here is the ` (INFO) ` part; this tells the linker that this section
195195is 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
8383logger that's defined somewhere else; that's why we use the ` extern ` block. We
8484saw this pattern in the [ main interface] chapter.
8585
86- [ main interface ] : / main.html
86+ [ main interface ] : main.html
8787
8888We need to declare a type for ` LOGGER ` or the code won't type check. We don't
8989know 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
9393version of the ` log! ` macro so I won't explain it here as it's explained in the
9494[ previous] chapter.
9595
96- [ previous ] : / logging.html
96+ [ previous ] : logging.html
9797
9898Now that we know that ` LOGGER ` has to be a trait object it's clearer why we
9999omitted the associated ` Error ` type in ` GlobalLog ` . If we had not omitted then
You can’t perform that action at this time.
0 commit comments