Skip to content

Commit

Permalink
修正笔误
Browse files Browse the repository at this point in the history
  • Loading branch information
HakurouKen committed Mar 3, 2014
1 parent 9f586f1 commit 8ca09b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/creating_tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
grunt.registerTask('foo', 'My "foo" task', function(){
//如果缺省"meta.name"配置属性则任务失败
grunt.config.requires('meta.name');
//如果缺省"mata.name"配置属性则任务同样失败
//与上一句相同,如果缺省"meta.name"配置属性则任务失败
grunt.config.requires(['meta', 'name']);
//附加记录
grunt.log.writeln('This will only log if meta.name is defined in the config');
Expand All @@ -166,7 +166,7 @@
// 记录属性值,如果属性未定义则返回null
grunt.log.writeln('The meta.name property is:' + grunt.config('meta.name'));
// 同样的记录属性值,如果属性未定义则返回null
grunt.log.writeln('Ths meta.name property is:' + grunt.config(['meta', 'name']));
grunt.log.writeln('The meta.name property is:' + grunt.config(['meta', 'name']));
});

[contrib tasks](https://github.com/gruntjs/)中可以查看更多的例子。
Expand Down

0 comments on commit 8ca09b0

Please sign in to comment.