diff --git a/doc/encoding.md b/doc/encoding.md index e9ebe8f21..8f8ff7f45 100644 --- a/doc/encoding.md +++ b/doc/encoding.md @@ -131,8 +131,8 @@ StringStream source(s); GenericStringBuffer > target; bool hasError = false; -while (source.Peak() != '\0') - if (!Transcoder::Transcode, UTF16<> >(source, target)) { +while (source.Peek() != '\0') + if (!Transcoder, UTF16<> >::Transcode(source, target)) { hasError = true; break; } diff --git a/doc/encoding.zh-cn.md b/doc/encoding.zh-cn.md index 4858bae16..163eadec5 100644 --- a/doc/encoding.zh-cn.md +++ b/doc/encoding.zh-cn.md @@ -137,8 +137,8 @@ StringStream source(s); GenericStringBuffer > target; bool hasError = false; -while (source.Peak() != '\0') - if (!Transcoder::Transcode, UTF16<> >(source, target)) { +while (source.Peek() != '\0') + if (!Transcoder, UTF16<> >::Transcode(source, target)) { hasError = true; break; }