Fixed doctest

This commit is contained in:
2023-05-29 20:59:47 +01:00
parent 0cc8094823
commit f28c922f66
7 changed files with 47 additions and 24 deletions

View File

@@ -11,3 +11,5 @@ mod str;
pub use cpsio::{handle as handleIO, IO};
pub use mk_stl::mk_stl;
pub use self::bool::Boolean;
pub use self::num::Numeric;

View File

@@ -12,7 +12,9 @@ use crate::representations::{Literal, Primitive};
/// A number, either floating point or unsigned int, visible to Orchid.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum Numeric {
/// A nonnegative integer such as a size, index or count
Uint(u64),
/// A float other than NaN. Orchid has no silent errors
Num(NotNan<f64>),
}