瀏覽代碼

Fix a typo

Signed-off-by: biobot <[email protected]>
biobot 4 年之前
父節點
當前提交
49dbc9dc15
共有 4 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      manual/custom_rule.md
  2. 1 1
      mirror/manual/custom_rule.html
  3. 1 1
      mirror/zh-cn/manual/custom_rule.html
  4. 1 1
      zh-cn/manual/custom_rule.md

+ 1 - 1
manual/custom_rule.md

@@ -598,7 +598,7 @@ For example, we can embed some png/jpg resource files into the code in the proje
 
 ```lua
 target("console")
-    set_kind("binart")
+    set_kind("binary")
     add_rules("utils.bin2c", {extensions = {".png", ".jpg"}})
     add_files("src/*.c")
     add_files("res/*.png", "res/*.jpg")

+ 1 - 1
mirror/manual/custom_rule.html

@@ -480,7 +480,7 @@ target("test")
 <p>This rule can be used in versions above v2.5.7 to introduce some binary files into the project, and see them as c/c++ header files for developers to use to obtain the data of these files.</p>
 <p>For example, we can embed some png/jpg resource files into the code in the project.</p>
 <pre><code class="lang-lua">target("console")
-    set_kind("binart")
+    set_kind("binary")
     add_rules("utils.bin2c", {extensions = {".png", ".jpg"}})
     add_files("src/*.c")
     add_files("res/*.png", "res/*.jpg")

+ 1 - 1
mirror/zh-cn/manual/custom_rule.html

@@ -483,7 +483,7 @@ target("test")
 <p>v2.5.7 以上版本可以使用此规则,在项目中引入一些二进制文件,并见他们作为 c/c++ 头文件的方式提供开发者使用,获取这些文件的数据。</p>
 <p>比如,我们可以在项目中,内嵌一些 png/jpg 资源文件到代码中。</p>
 <pre><code class="lang-lua">target("console")
-    set_kind("binart")
+    set_kind("binary")
     add_rules("utils.bin2c", {extensions = {".png", ".jpg"}})
     add_files("src/*.c")
     add_files("res/*.png", "res/*.jpg")

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

@@ -600,7 +600,7 @@ v2.5.7 以上版本可以使用此规则,在项目中引入一些二进制文
 
 ```lua
 target("console")
-    set_kind("binart")
+    set_kind("binary")
     add_rules("utils.bin2c", {extensions = {".png", ".jpg"}})
     add_files("src/*.c")
     add_files("res/*.png", "res/*.jpg")