Skip to content

Commit

Permalink
Update chapter_02.rst
Browse files Browse the repository at this point in the history
Fix typo, thanks to akawhy.
  • Loading branch information
jinglong committed Feb 25, 2014
1 parent 9b03025 commit b1cba2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/chapter_02.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ ngx_str_null用于设置字符串str为空串,长度为0,data为NULL。
.. code:: c
ngx_str_t str = ngx_string("hello world");
ngx_str_t str1 = ngx_null_string();
ngx_str_t str1 = ngx_null_string;
如果向下面这样使用,就会有问题,这里涉及到c语言中对结构体变量赋值操作的语法规则,在此不做介绍。

Expand Down

0 comments on commit b1cba2d

Please sign in to comment.