Skip to content

Commit 25ff430

Browse files
Skip second README doc test (requires first to have run and execution order isn't guaranteed)
1 parent 991daaf commit 25ff430

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ for p in 0..4u32 {
7373

7474
* After creation, a B-field can optionally be loaded from a directory containing the produced `mmap` and related files with the `load` function. And once created or loaded, a B-field can be directly queried using the `get` function, which will either return `None`, `Indeterminate`, or `Some(BFieldValue)` (which is currently an alias for `Some(u32)` see [limitations](#⚠️-current-limitations-of-the-rust-bfield-implementation) below for more details):
7575

76-
```rust
76+
```rust no_run
7777
use bfield::BField;
7878

7979
// Load based on filename of the first array ".0.bfd"

src/bfield.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ mod tests {
312312
}
313313
}
314314

315+
// Causes cargo test to run doc tests on all `rust` code blocks
315316
#[doc = include_str!("../README.md")]
316317
#[cfg(doctest)]
317-
pub struct ReadmeDoctests;
318+
struct ReadmeDoctests;

0 commit comments

Comments
 (0)