소스 검색

Merge pull request #51 from Biobots/typo

Fix a typo
ruki 4 년 전
부모
커밋
ac6d85a45e
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")