Skip to content

Instantly share code, notes, and snippets.

@Aatch
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aatch/5ce681363894abd3d288 to your computer and use it in GitHub Desktop.
Save Aatch/5ce681363894abd3d288 to your computer and use it in GitHub Desktop.
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;
}
}
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