Fix duplication of lines in docs

master
inokawa 5 years ago
parent 9f9634ca9f
commit 25107caeb2
  1. 5
      docs/src/tutorials/npm-browser-packages/template-deep-dive/src-lib-rs.md

@ -83,9 +83,8 @@ Either way, the contents of `utils.rs` define a single public function `set_pani
```rust ```rust
// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global // When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global // allocator. // allocator.
// allocator. #[cfg(feature = "wee_alloc")] if #[cfg(feature = "wee_alloc")] {
if #[cfg(feature = "wee_alloc")] { #[global_allocator]
#[global_allocator] static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; #[global_allocator] static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
``` ```

Loading…
Cancel
Save