mirror of
https://github.com/nkbai/book.git
synced 2026-09-04 05:32:47 +08:00
87: Have mdBook not wrap code snippets in "fn main() {}" r=therealprof a=adamgreen
This is the same change as in commit c5caa3b but for the instances I noticed in the rest of the chapters.
Before this change, clicking on the icon to copy a code snippet to the clipboard would result in something like:
```rust
fn main() {
// Exception handler for the SysTick (System Timer) exception
fn SysTick() {
// ..
}
}
```
After this change, the following would be copied to the clipboard instead:
```rust
// Exception handler for the SysTick (System Timer) exception
fn SysTick() {
// ..
}
```
Co-authored-by: Adam Green <adamgreen@users.noreply.github.com>