From 6ff3efd0ef8d58c1f1db056dbfc5c4b53847967e Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Mon, 13 Jan 2020 12:41:56 +0100 Subject: Add ,ignore to avoid that CI compiles these examples. --- book/src/faq.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/faq.md b/book/src/faq.md index ed5f284b..50ca0756 100644 --- a/book/src/faq.md +++ b/book/src/faq.md @@ -75,7 +75,7 @@ the struct. Instead, use the `Default` trait. You can either enable this when constructing the `Builder` using the `derive_default` method, or you can implement this per struct using: -```rust +```rust,ignore impl Default for SRC_DATA { fn default() -> Self { unsafe { std::mem::zeroed() } @@ -85,7 +85,7 @@ impl Default for SRC_DATA { This makes it possible to initialize `SRC_DATA` by: -```rust +```rust,ignore SRC_DATA { field_a: "foo", field_b: "bar", -- cgit v1.2.3