From 25107caeb2e7949aa596a0cd4d9c03af9b3d58f8 Mon Sep 17 00:00:00 2001 From: inokawa <48897392+inokawa@users.noreply.github.com> Date: Fri, 6 Nov 2020 11:43:17 +0900 Subject: [PATCH] Fix duplication of lines in docs --- .../npm-browser-packages/template-deep-dive/src-lib-rs.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/src/tutorials/npm-browser-packages/template-deep-dive/src-lib-rs.md b/docs/src/tutorials/npm-browser-packages/template-deep-dive/src-lib-rs.md index 1a0624a..de75b16 100644 --- a/docs/src/tutorials/npm-browser-packages/template-deep-dive/src-lib-rs.md +++ b/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 // 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. #[cfg(feature = "wee_alloc")] - if #[cfg(feature = "wee_alloc")] { #[global_allocator] + // allocator. + if #[cfg(feature = "wee_alloc")] { #[global_allocator] static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; ```