From cade4650690e07a139edc699750c9aab88f4a671 Mon Sep 17 00:00:00 2001 From: BlockLune <39331194+BlockLune@users.noreply.github.com> Date: Mon, 22 Jul 2024 12:39:51 +0800 Subject: [PATCH] Fix: `cargo` config file name Pointing out the correct config file name when setting `cargo` [GitHub #45] --- src/chsrc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/chsrc.c b/src/chsrc.c index ee72e1d..b1e9637 100644 --- a/src/chsrc.c +++ b/src/chsrc.c @@ -7,9 +7,10 @@ * Contributors : Aaron Ruan * | Rui Chen * | Shengwei Chen <414685209@qq.com> + * | BlockLune * | * Created on : <2023-08-28> - * Last modified : <2024-07-09> + * Last modified : <2024-07-22> * * chsrc: Change Source —— 全平台通用命令行换源工具 * ------------------------------------------------------------*/ @@ -448,7 +449,7 @@ pl_rust_setsrc (char *option) "[source.mirror]\n" "registry = \"sparse+", source.url, "\""); - chsrc_warn (xy_strjoin (3, "请您手动写入以下内容到 ", xy_uniform_path("~/.cargo"), " 文件中:")); + chsrc_warn (xy_strjoin (3, "请您手动写入以下内容到 ", xy_uniform_path("~/.cargo/config.toml"), " 文件中:")); puts (file); chsrc_say_lastly (&source, ChsrcTypeManual); }