Skip to content

Commit d7c90cb

Browse files
committed
feat: update chapter(s)
1 parent cc8570d commit d7c90cb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

content/chapter-3/305.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
id:
3-
title: "[译] [305] 使用 Copilot 设计函数的循环"
2+
id: 40
3+
title: "[译] [305] 使用 Copilot 设计函数的流程"
44
---
55

66

@@ -19,10 +19,12 @@ Designing functions with Copilot involves the following cycle of steps (see figu
1919
1. If the code is correct after multiple tests, move on.
2020
1. If the code is incorrect, move to step 2 and edit the prompt.
2121

22-
1. 明确函数想要实现的行为。
23-
2. 构建一段清晰准确的提示词来描述函数。
22+
<!-- -->
23+
24+
1. 确定函数想要实现的行为。
25+
2. 构建一段尽可能清晰的提示词来描述函数。
2426
3. 让 Copilot 生成相应的代码。
25-
4. 仔细阅读代码,确认其是否符合预期
27+
4. 通读代码,判断其是否看起来比较合理
2628
5. 对代码进行测试,确认其是否正确。
2729
1. 经过多次测试,若代码无误,便可以继续。
2830
1. 若发现代码有误,回到第 2 步,对提示词进行调整。

0 commit comments

Comments
 (0)