Drive by fix of doc of Value. (#4658)

* 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>
This commit is contained in:
Sergei Pepyakin
2020-01-17 18:09:39 +01:00
committed by Bastian Köcher
parent ad60af5f13
commit 8c789806f2
@@ -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),
}