tutorial: Add more buffalo.

This commit is contained in:
Joshua Wise 2012-07-09 21:33:42 -04:00 committed by Graydon Hoare
parent f39477d926
commit 20f7c7cf0c

View File

@ -2320,11 +2320,11 @@ and one for values. This means that this code is valid:
~~~~
mod buffalo {
type buffalo = int;
fn buffalo(buffalo: buffalo) -> buffalo { buffalo }
fn buffalo<buffalo: copy>(buffalo: buffalo) -> buffalo { buffalo }
}
fn main() {
let buffalo: buffalo::buffalo = 1;
buffalo::buffalo(buffalo::buffalo(buffalo));
buffalo::buffalo::<buffalo::buffalo>(buffalo::buffalo(buffalo));
}
~~~~