mirror of https://github.com/sunface/rust-course
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					16 lines
				
				290 B
			
		
		
			
		
	
	
					16 lines
				
				290 B
			| 
								 
											4 years ago
										 
									 | 
							
								// functions3.rs
							 | 
						||
| 
								 
											4 years ago
										 
									 | 
							
								// 让我能够编译!执行 `rustex hint functions3` 获取提示 :)
							 | 
						||
| 
								 
											4 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 | 
							
								// I AM NOT DONE
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											4 years ago
										 
									 | 
							
								/// 翻译: [mg-chao](https://github.com/mg-chao)
							 | 
						||
| 
								 
											4 years ago
										 
									 | 
							
								fn main() {
							 | 
						||
| 
								 | 
							
								    call_me();
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								fn call_me(num: u32) {
							 | 
						||
| 
								 | 
							
								    for i in 0..num {
							 | 
						||
| 
								 | 
							
								        println!("Ring! Call number {}", i + 1);
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |