Created
June 18, 2016 16:42
-
-
Save astocko/d75ba6afbd327ed82d5fbdcbdf062d01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![crate_type = "lib"] | |
pub fn increment(data: &mut u32, next: fn() -> usize) -> usize { | |
*data += 1; | |
next() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment