Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Drive by fix of doc of Value. (#4658)
Browse files Browse the repository at this point in the history
* Drive by fix of doc of `Value`.

* Apply suggestions from code review

Co-Authored-By: André Silva <andre.beat@gmail.com>

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by: André Silva <andre.beat@gmail.com>
  • Loading branch information
3 people committed Jan 17, 2020
1 parent 36a6de0 commit e581e3c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions primitives/wasm-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ pub enum ValueType {
/// Values supported by Substrate on the boundary between host/Wasm.
#[derive(PartialEq, Debug, Clone, Copy)]
pub enum Value {
/// An `i32` value.
/// A 32-bit integer.
I32(i32),
/// An `i64` value.
/// A 64-bit integer.
I64(i64),
/// An nan-preserving `f32` value.
/// A 32-bit floating-point number stored as raw bit pattern.
///
/// You can materialize this value using `f32::from_bits`.
F32(u32),
/// An nan-preserving `f64` value.
/// A 64-bit floating-point number stored as raw bit pattern.
///
/// You can materialize this value using `f64::from_bits`.
F64(u64),
}

Expand Down

0 comments on commit e581e3c

Please sign in to comment.