Skip to content

Instantly share code, notes, and snippets.

@brson
Created February 20, 2013 01:27
Show Gist options
  • Save brson/4991909 to your computer and use it in GitHub Desktop.
Save brson/4991909 to your computer and use it in GitHub Desktop.
pub struct VariantDoc {
desc: Option<~str>,
sig: Option<~str>
}
fn main() {
let variants = ~[
VariantDoc {
desc: None,
sig: None
}
];
let _vdoc = do vec::map(variants) |variant| {
VariantDoc {
desc: None,
.. copy *variant
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment