Fix comment for fn gas() in wasm/runtime (#8122)

* Update runtime.rs

* Update runtime.rs
This commit is contained in:
Alexey 2018-03-15 15:34:11 +03:00 committed by Nikolay Volf
parent 21cb08586b
commit acd7192b17
1 changed files with 2 additions and 2 deletions

View File

@ -305,8 +305,8 @@ impl<'a> Runtime<'a> {
if self.gas_counter > self.gas_limit { return Err(Error::InvalidGasState); }
Ok(self.gas_limit - self.gas_counter)
}
/// Charges gas for the current block of execution. Returns an error in case of running out of gas.
/// General gas charging extern.
fn gas(&mut self, args: RuntimeArgs) -> Result<()> {
let amount: u32 = args.nth_checked(0)?;
if self.charge_gas(amount as u64) {