Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/std/src/math/int128.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl Int128 {
pub const MAX: Int128 = Int128(i128::MAX);
pub const MIN: Int128 = Int128(i128::MIN);

/// Creates a Int128(value).
/// Creates an Int128(value).
///
/// This method is less flexible than `from` but can be called in a const context.
#[inline]
Expand All @@ -66,13 +66,13 @@ impl Int128 {
Self(value)
}

/// Creates a Int128(0)
/// Creates an Int128(0)
#[inline]
pub const fn zero() -> Self {
Int128(0)
}

/// Creates a Int128(1)
/// Creates an Int128(1)
#[inline]
pub const fn one() -> Self {
Self(1)
Expand Down
6 changes: 3 additions & 3 deletions packages/std/src/math/int256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl Int256 {
pub const MAX: Int256 = Int256(I256::MAX);
pub const MIN: Int256 = Int256(I256::MIN);

/// Creates a Int256(value).
/// Creates an Int256(value).
///
/// This method is less flexible than `from` but can be called in a const context.
///
Expand All @@ -83,13 +83,13 @@ impl Int256 {
Self::from_be_bytes(grow_be_int(value.to_be_bytes()))
}

/// Creates a Int256(0)
/// Creates an Int256(0)
#[inline]
pub const fn zero() -> Self {
Int256(I256::ZERO)
}

/// Creates a Int256(1)
/// Creates an Int256(1)
#[inline]
pub const fn one() -> Self {
Self(I256::ONE)
Expand Down
6 changes: 3 additions & 3 deletions packages/std/src/math/int512.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl Int512 {
pub const MAX: Int512 = Int512(I512::MAX);
pub const MIN: Int512 = Int512(I512::MIN);

/// Creates a Int512(value).
/// Creates an Int512(value).
///
/// This method is less flexible than `from` but can be called in a const context.
///
Expand All @@ -84,13 +84,13 @@ impl Int512 {
Self::from_be_bytes(grow_be_int(value.to_be_bytes()))
}

/// Creates a Int512(0)
/// Creates an Int512(0)
#[inline]
pub const fn zero() -> Self {
Int512(I512::ZERO)
}

/// Creates a Int512(1)
/// Creates an Int512(1)
#[inline]
pub const fn one() -> Self {
Self(I512::ONE)
Expand Down
6 changes: 3 additions & 3 deletions packages/std/src/math/int64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl Int64 {
pub const MAX: Int64 = Int64(i64::MAX);
pub const MIN: Int64 = Int64(i64::MIN);

/// Creates a Int64(value).
/// Creates an Int64(value).
///
/// This method is less flexible than `from` but can be called in a const context.
#[inline]
Expand All @@ -66,13 +66,13 @@ impl Int64 {
Self(value)
}

/// Creates a Int64(0)
/// Creates an Int64(0)
#[inline]
pub const fn zero() -> Self {
Int64(0)
}

/// Creates a Int64(1)
/// Creates an Int64(1)
#[inline]
pub const fn one() -> Self {
Self(1)
Expand Down
2 changes: 1 addition & 1 deletion packages/vm/src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ impl<A: BackendApi, S: Storage, Q: Querier> Environment<A, S, Q> {

/// Decreases gas left by the given amount.
/// If the amount exceeds the available gas, the remaining gas is set to 0 and
/// an VmError::GasDepletion error is returned.
/// a VmError::GasDepletion error is returned.
#[allow(unused)] // used in tests
pub fn decrease_gas_left(&self, store: &mut impl AsStoreMut, amount: u64) -> VmResult<()> {
self.with_wasmer_instance(|instance| {
Expand Down