app: sr_latch: fix doc-comment to have file scope
This commit is contained in:
parent
c06aa7ff36
commit
beb43843ff
|
@ -1,7 +1,7 @@
|
||||||
/// this example creates a "set/reset" latch from a non-linear ferromagnetic device.
|
//! this example creates a "set/reset" latch from a non-linear ferromagnetic device.
|
||||||
/// this is quite a bit like a "core memory" device.
|
//! this is quite a bit like a "core memory" device.
|
||||||
/// the SR latch in this example is wired to a downstream latch, mostly to show that it's
|
//! the SR latch in this example is wired to a downstream latch, mostly to show that it's
|
||||||
/// possible to transfer the state (with some limitation) from one latch to another.
|
//! possible to transfer the state (with some limitation) from one latch to another.
|
||||||
|
|
||||||
use coremem::{Driver, mat, meas};
|
use coremem::{Driver, mat, meas};
|
||||||
use coremem::geom::{Coord as _, Meters, Torus};
|
use coremem::geom::{Coord as _, Meters, Torus};
|
||||||
|
@ -14,7 +14,7 @@ fn main() {
|
||||||
coremem::init_logging();
|
coremem::init_logging();
|
||||||
// feature size: the side-length of each discrete grid cell to model (in Meters)
|
// feature size: the side-length of each discrete grid cell to model (in Meters)
|
||||||
let feat_size = 20e-6f32;
|
let feat_size = 20e-6f32;
|
||||||
|
|
||||||
// parameters used below to describe the components we construct below. units are (M, A or S).
|
// parameters used below to describe the components we construct below. units are (M, A or S).
|
||||||
let depth = 1600e-6;
|
let depth = 1600e-6;
|
||||||
// closest distance between the non-vacuum component and the dissipating boundary
|
// closest distance between the non-vacuum component and the dissipating boundary
|
||||||
|
|
Loading…
Reference in New Issue