Fix two examples, break one
This commit is contained in:
		
							parent
							
								
									aeca557b6f
								
							
						
					
					
						commit
						f6ed39d4e5
					
				| @ -16,6 +16,9 @@ fn test() -> Test { | ||||
| fn main() -> u32 { | ||||
|     let mut value = test(); | ||||
| 
 | ||||
|     let beep = [2, 3, 4]; | ||||
|     let boop = 3; | ||||
| 
 | ||||
|     let mut a = &mut value; | ||||
| 
 | ||||
|     *a.second[2] = 5; | ||||
|  | ||||
| @ -9,8 +9,8 @@ fn main() -> u32 { | ||||
|   for i in 0 .. 15 { | ||||
|     let mut text = from_str("num: "); | ||||
|     add_num_to_str(&mut text, i); | ||||
|     print(&text); | ||||
|     free_string(&mut text); | ||||
|     print(text); | ||||
|     free_string(&text); | ||||
|   } | ||||
| 
 | ||||
|   let mut num = 0; | ||||
|  | ||||
| @ -6,7 +6,7 @@ import std::int_div; | ||||
| fn main() -> i32 { | ||||
|     let hello = from_str("hello world"); | ||||
| 
 | ||||
|     print(&hello); | ||||
|     print(hello); | ||||
| 
 | ||||
|     return int_div(15, 5).quotient; | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user