1 2 3 4 5 6 7 8 9 10 11 12 13
/// Return the value unchanged. pub fn described(value: u8) -> u8 { // The identity is the whole contract. // // A blank line follows this comment block. value } pub fn compute(value: u8) -> u8 { let scaled = value * 2; scaled + 1 }