diff options
author | Milo Yip <miloyip@gmail.com> | 2016-06-27 04:35:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-27 04:35:42 +0300 |
commit | cf7324b466f4ec3623a23dd6fd403971524f161a (patch) | |
tree | 7d08cb2b6246e69bec996fddbca9014582a97203 | |
parent | 1c087b77cb7eb40a40aaf1d0f28feedc2d6e42ee (diff) | |
parent | dabbd2b0286908ba81fbf572eabc4081c1e25ffc (diff) |
Merge pull request #660 from andytimes/for-milo
document typo fix and .gitignore update
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | doc/tutorial.zh-cn.md | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -20,5 +20,6 @@ Testing /googletest install_manifest.txt Doxyfile +Doxyfile.zh-cn DartConfiguration.tcl *.nupkg diff --git a/doc/tutorial.zh-cn.md b/doc/tutorial.zh-cn.md index 2b9229db..f5db1ca6 100644 --- a/doc/tutorial.zh-cn.md +++ b/doc/tutorial.zh-cn.md @@ -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); // 上行的缩写 |