Skip to content

Commit

Permalink
v0.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jul 31, 2021
1 parent 089a744 commit c4ea577
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/data/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub enum EncodeError {
/// string length is {0}, which exceeds 255 bytes limit
StringTooLong(usize),

/// collection contains {0} items, which exceeds [`u18::MAX`] limit
/// collection contains {0} items, which exceeds [`u16::MAX`] limit
ByteLimitExceeded(usize),

/// collection contains {0} items, which exceeds [`u16::MAX`] limit
Expand Down
8 changes: 4 additions & 4 deletions src/isa/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
/// # extern crate alloc;
/// # #[macro_use] extern crate aluvm;
/// # use paste::paste;
/// # use aluvm::{Vm};
/// # use aluvm::Vm;
/// # use aluvm::libs::Lib;
/// # use aluvm::isa::ReservedOp;
/// # use aluvm::isa::Instr;
///
/// let code = aluasm! {
/// clr r1024[5] ;
Expand All @@ -35,8 +35,8 @@
/// jmp 0 ;
/// };
///
/// let lib = Lib::<ReservedOp>::assemble(&code).unwrap();
/// let mut vm = Vm::with(lib);
/// let lib = Lib::assemble(&code).unwrap();
/// let mut vm = Vm::<Instr>::with(lib);
/// match vm.main() {
/// true => println!("success"),
/// false => println!("failure"),
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub mod data;
pub mod isa;
pub mod libs;
pub mod reg;
mod vm;
pub mod vm;

pub use isa::Isa;
pub use vm::Vm;
6 changes: 3 additions & 3 deletions src/libs/segs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ use crate::libs::{LibId, LibSite};
#[cfg_attr(feature = "std", derive(Error))]
#[display(doc_comments)]
pub enum SegmentError {
/// the size of the CODE segment is {0}, which exceeds [`CODE_SEGMENT_MAX_LEN`]
/// the size of the CODE segment is {0}, which exceeds `CODE_SEGMENT_MAX_LEN`
CodeSegmentTooLarge(usize),

/// the size of the DATA segment is {0}, which exceeds [`DATA_SEGMENT_MAX_LEN`]
/// the size of the DATA segment is {0}, which exceeds `DATA_SEGMENT_MAX_LEN`
DataSegmentTooLarge(usize),

/// ISA segment error
Expand Down Expand Up @@ -254,7 +254,7 @@ impl LibSeg {
///
/// # Errors
///
/// Checks requirement that the total number of libraries must not exceed [`LIBS_MAX_TOTAL`] and
/// Checks requirement that the total number of libraries must not exceed `LIBS_MAX_TOTAL` and
/// returns [`LibSegOverflow`] otherwise
///
/// # Returns
Expand Down

0 comments on commit c4ea577

Please sign in to comment.