From 1c2c8e085a8b2561dff17bedb689d2eb0609b689 Mon Sep 17 00:00:00 2001 From: miloyip Date: Tue, 2 Mar 2021 11:15:31 +0800 Subject: [PATCH] doc: fix incorrect template parameters in EncodedOutputStream example Fix #1851 --- doc/stream.md | 2 +- doc/stream.zh-cn.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/stream.md b/doc/stream.md index 04c865c..0573549 100644 --- a/doc/stream.md +++ b/doc/stream.md @@ -231,7 +231,7 @@ FileWriteStream bos(fp, writeBuffer, sizeof(writeBuffer)); typedef EncodedOutputStream, FileWriteStream> OutputStream; OutputStream eos(bos, true); // Write BOM -Writer, UTF8<>> writer(eos); +Writer, UTF32LE<>> writer(eos); d.Accept(writer); // This generates UTF32-LE file from UTF-8 in memory fclose(fp); diff --git a/doc/stream.zh-cn.md b/doc/stream.zh-cn.md index 7f2f356..6e379bb 100644 --- a/doc/stream.zh-cn.md +++ b/doc/stream.zh-cn.md @@ -231,7 +231,7 @@ FileWriteStream bos(fp, writeBuffer, sizeof(writeBuffer)); typedef EncodedOutputStream, FileWriteStream> OutputStream; OutputStream eos(bos, true); // 写入 BOM -Writer, UTF8<>> writer(eos); +Writer, UTF32LE<>> writer(eos); d.Accept(writer); // 这里从内存的 UTF-8 生成 UTF32-LE 文件 fclose(fp);