summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrne Brocaar <info@brocaar.com>2020-01-13 12:41:56 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2020-01-13 14:22:31 +0100
commit6ff3efd0ef8d58c1f1db056dbfc5c4b53847967e (patch)
tree2d145772fe387fe06e040c068c99b23b53d9ed2a
parent96d8961382122b7edc4a315d54e5b50d88c35091 (diff)
Add ,ignore to avoid that CI compiles these examples.
-rw-r--r--book/src/faq.md4
1 files 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",