Last active
August 29, 2015 14:11
-
-
Save Aatch/5ce681363894abd3d288 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
fn test() { | |
let x : [u8, ..256]; | |
let val = get_val(); | |
if val == 0 { | |
x = [1, ..256]; | |
return x; | |
} else if val == 3 { | |
x = [3, ..256]; | |
return x; | |
} else { | |
x = [6, ..256]; | |
return x; | |
} | |
} |
This file contains hidden or 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
fn test() { | |
let x : [u8, ..256]; | |
let val = get_val(); | |
if val == 0 { | |
x = [1, ..256]; | |
return x; | |
} else if val == 3 { | |
x = [3, ..256]; | |
return x; | |
} else { | |
x = [6, ..256]; | |
return x; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment