From 6d3097ac9ec63f04b864b734f72daa6ad62ec847 Mon Sep 17 00:00:00 2001 From: debris Date: Mon, 11 Jan 2016 02:47:45 +0100 Subject: [PATCH] updated output policy docs --- src/evm/executive.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/evm/executive.rs b/src/evm/executive.rs index 603c8f34e..9936b95cf 100644 --- a/src/evm/executive.rs +++ b/src/evm/executive.rs @@ -283,11 +283,12 @@ pub enum ExtMode { Create } -/// Wrapper structure for evm return data to avoid unnecessary copying. +/// Policy for handling output data on `RETURN` opcode. pub enum OutputPolicy<'a> { - /// Reference to fixed sized output of a message call. + /// Return reference to fixed sized output. + /// Used for message calls. Return(&'a mut [u8]), - /// Use it, if you want return code to initialize contract. + /// Init new contract as soon as `RETURN` is called. InitContract }