Skip to content

Commit

Permalink
Merge pull request #660 from andytimes/for-milo
Browse files Browse the repository at this point in the history
document typo fix and .gitignore update
  • Loading branch information
miloyip authored Jun 27, 2016
2 parents 1c087b7 + dabbd2b commit cf7324b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ Testing
/googletest
install_manifest.txt
Doxyfile
Doxyfile.zh-cn
DartConfiguration.tcl
*.nupkg
2 changes: 1 addition & 1 deletion doc/tutorial.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ const char * cstr = getenv("USER");
size_t cstr_len = ...; // 如果有长度
Value s;
// s.SetString(cstr); // 这不能通过编译
s.SetString(StringRef(cstr)); // 可以,假设它的生命周期案全,并且是以空字符结尾的
s.SetString(StringRef(cstr)); // 可以,假设它的生命周期安全,并且是以空字符结尾的
s = StringRef(cstr); // 上行的缩写
s.SetString(StringRef(cstr, cstr_len));// 更快,可处理空字符
s = StringRef(cstr, cstr_len); // 上行的缩写
Expand Down

0 comments on commit cf7324b

Please sign in to comment.