Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dragazo committed Nov 13, 2023
1 parent 965fbb9 commit 7114722
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "netsblox-vm"
version = "0.2.17"
version = "0.2.18"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Devin Jean <[email protected]>"]
Expand Down
3 changes: 3 additions & 0 deletions src/runtime.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Miscellaneous types representing runtime state.
use alloc::collections::{BTreeMap, BTreeSet, VecDeque};
use alloc::rc::{Rc, Weak};
use alloc::borrow::{Cow, ToOwned};
Expand Down Expand Up @@ -132,6 +134,7 @@ impl<C: CustomTypes<S>, S: System<C>> From<FromJsonError> for ErrorCause<C, S> {
impl<C: CustomTypes<S>, S: System<C>> From<FromNetsBloxJsonError> for ErrorCause<C, S> { fn from(error: FromNetsBloxJsonError) -> Self { Self::FromNetsBloxJsonError { error } } }
impl<C: CustomTypes<S>, S: System<C>> From<NumberError> for ErrorCause<C, S> { fn from(error: NumberError) -> Self { Self::NumberError { error } } }

/// A 32-bit RGBA color with color space conversion utils.
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
pub struct Color { pub r: u8, pub g: u8, pub b: u8, pub a: u8 }
impl Color {
Expand Down
2 changes: 1 addition & 1 deletion src/std_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub struct Clock {
cache: Option<ClockCache>,
}
impl Clock {
/// Creates a new [`Clock] with the specified [`UtcOffset`] and (optional) cache [`Precision`] (see [`Clock::read`]).
/// Creates a new [`Clock`] with the specified [`UtcOffset`] and (optional) cache [`Precision`] (see [`Clock::read`]).
pub fn new(utc_offset: UtcOffset, cache_precision: Option<Precision>) -> Self {
let mut res = Self { utc_offset, cache: None };
if let Some(precision) = cache_precision {
Expand Down

0 comments on commit 7114722

Please sign in to comment.