Quellcode durchsuchen

fix(zh,en): update mistake in project_target.md (#181)

* fix(zh,en): update mistake in project_target.md

* fix(zh,en): update mistake in project_target.md

---------

Co-authored-by: aytony <[email protected]>
aytony vor 1 Jahr
Ursprung
Commit
fa868bbe4f
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      manual/project_target.md
  2. 1 1
      zh-cn/manual/project_target.md

+ 1 - 1
manual/project_target.md

@@ -3546,7 +3546,7 @@ By default, `xmake test` will wait until all tests have been run, no matter how
 Sometimes, we want to interrupt the test directly if the first test fails, then we can enable it through the following configuration:
 
 ```lua
-set_policy("test.return_zero_on_failure", true)
+set_policy("test.stop_on_first_failure", true)
 ```
 
 ##### If the test fails, return zero

+ 1 - 1
zh-cn/manual/project_target.md

@@ -3538,7 +3538,7 @@ running tests ...
 而有时候,我们想在第一个测试没通过,就直接中断测试,那么我们可以通过下面的配置启用:
 
 ```lua
-set_policy("test.return_zero_on_failure", true)
+set_policy("test.stop_on_first_failure", true)
 ```
 
 ##### 测试失败返回0