Skip to content

Commit

Permalink
doc: fix incorrect template parameters in EncodedOutputStream example
Browse files Browse the repository at this point in the history
Fix #1851
  • Loading branch information
miloyip committed Mar 2, 2021
1 parent b1a4d91 commit 1c2c8e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ FileWriteStream bos(fp, writeBuffer, sizeof(writeBuffer));
typedef EncodedOutputStream<UTF32LE<>, FileWriteStream> OutputStream;
OutputStream eos(bos, true); // Write BOM
Writer<OutputStream, UTF32LE<>, UTF8<>> writer(eos);
Writer<OutputStream, UTF8<>, UTF32LE<>> writer(eos);
d.Accept(writer); // This generates UTF32-LE file from UTF-8 in memory
fclose(fp);
Expand Down
2 changes: 1 addition & 1 deletion doc/stream.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ FileWriteStream bos(fp, writeBuffer, sizeof(writeBuffer));
typedef EncodedOutputStream<UTF32LE<>, FileWriteStream> OutputStream;
OutputStream eos(bos, true); // 写入 BOM
Writer<OutputStream, UTF32LE<>, UTF8<>> writer(eos);
Writer<OutputStream, UTF8<>, UTF32LE<>> writer(eos);
d.Accept(writer); // 这里从内存的 UTF-8 生成 UTF32-LE 文件
fclose(fp);
Expand Down

0 comments on commit 1c2c8e0

Please sign in to comment.