Skip to content

Commit e03df60

Browse files
authored
fix(docs): add the missing constant "record" in template string (#1027)
1 parent b0adc6b commit e03df60

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Split complex logic into multiple steps to improve the stability of the automati
8383
```javascript
8484
const recordList = await agent.aiQuery('string[], the record list')
8585
for (const record of recordList) {
86-
const hasCompleted = await agent.aiBoolean(`check if the record contains the text "completed"`)
86+
const hasCompleted = await agent.aiBoolean(`check if the record ${record}" contains the text "completed"`)
8787
if (!hasCompleted) {
8888
await agent.aiTap(record)
8989
}

README.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ await aiAction('click all the records one by one. If one record contains the tex
8383
```javascript
8484
const recordList = await agent.aiQuery('string[], the record list')
8585
for (const record of recordList) {
86-
const hasCompleted = await agent.aiBoolean(`check if the record contains the text "completed"`)
86+
const hasCompleted = await agent.aiBoolean(`check if the record ${record}" contains the text "completed"`)
8787
if (!hasCompleted) {
8888
await agent.aiTap(record)
8989
}

apps/site/docs/en/blog-programming-practice-using-structured-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Converted code:
3939
```javascript
4040
const recordList = await agent.aiQuery('string[], the record list')
4141
for (const record of recordList) {
42-
const hasCompleted = await agent.aiBoolean(`check if the record contains the text "completed"`)
42+
const hasCompleted = await agent.aiBoolean(`check if the record ${record}" contains the text "completed"`)
4343
if (!hasCompleted) {
4444
await agent.aiTap(record)
4545
}

apps/site/docs/en/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Split complex logic into multiple steps to improve the stability of the automati
7070
```javascript
7171
const recordList = await agent.aiQuery('string[], the record list')
7272
for (const record of recordList) {
73-
const hasCompleted = await agent.aiBoolean(`check if the record contains the text "completed"`)
73+
const hasCompleted = await agent.aiBoolean(`check if the record ${record}" contains the text "completed"`)
7474
if (!hasCompleted) {
7575
await agent.aiTap(record)
7676
}

apps/site/docs/zh/blog-programming-practice-using-structured-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ aiAction('逐条点击所有记录,如果一个记录包含“已完成”,
3838
```javascript
3939
const recordList = await agent.aiQuery('string[], the record list')
4040
for (const record of recordList) {
41-
const hasCompleted = await agent.aiBoolean(`check if the record contains the text "completed"`)
41+
const hasCompleted = await agent.aiBoolean(`check if the record ${record}" contains the text "completed"`)
4242
if (!hasCompleted) {
4343
await agent.aiTap(record)
4444
}

apps/site/docs/zh/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ await aiAction('逐一点击所有记录。如果某个记录包含文本"comple
6969
```javascript
7070
const recordList = await agent.aiQuery('string[], the record list')
7171
for (const record of recordList) {
72-
const hasCompleted = await agent.aiBoolean(`check if the record contains the text "completed"`)
72+
const hasCompleted = await agent.aiBoolean(`check if the record ${record}" contains the text "completed"`)
7373
if (!hasCompleted) {
7474
await agent.aiTap(record)
7575
}

0 commit comments

Comments
 (0)