mirror of
				https://github.com/krahets/hello-algo.git
				synced 2025-11-04 22:28:40 +08:00 
			
		
		
		
	Fix the type annotation in Rust (#951)
This commit is contained in:
		@ -138,7 +138,7 @@
 | 
			
		||||
    ```rust title=""
 | 
			
		||||
    // 使用多种基本数据类型来初始化数组
 | 
			
		||||
    let numbers: Vec<i32> = vec![0; 5];
 | 
			
		||||
    let decimals: Vec<float> = vec![0.0, 5];
 | 
			
		||||
    let decimals: Vec<f32> = vec![0.0, 5];
 | 
			
		||||
    let characters: Vec<char> = vec!['0'; 5];
 | 
			
		||||
    let bools: Vec<bool> = vec![false; 5];
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user