From b8591822d85c13b5563d02a49c8aa86187b788df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=93=E6=98=A5=E9=A3=8E?= <77157236+night-cruise@users.noreply.github.com> Date: Sat, 18 Nov 2023 14:02:00 +0800 Subject: [PATCH] Fix the type annotation in Rust (#951) --- docs/chapter_data_structure/basic_data_types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/chapter_data_structure/basic_data_types.md b/docs/chapter_data_structure/basic_data_types.md index e0e33ec15..32929ba30 100644 --- a/docs/chapter_data_structure/basic_data_types.md +++ b/docs/chapter_data_structure/basic_data_types.md @@ -138,7 +138,7 @@ ```rust title="" // 使用多种基本数据类型来初始化数组 let numbers: Vec = vec![0; 5]; - let decimals: Vec = vec![0.0, 5]; + let decimals: Vec = vec![0.0, 5]; let characters: Vec = vec!['0'; 5]; let bools: Vec = vec![false; 5]; ```