This is an automated email from the ASF dual-hosted git repository.
bodewig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push:
new 67c6e18 (doc) Fix minor typo from example
new 1e9c8fd Merge pull request #80 from robin850/fix-typo
67c6e18 is described below
commit 67c6e181c25bc2df8eb44162931f056eedc1b801
Author: Robin Dupret <[email protected]>
AuthorDate: Wed Jun 12 11:58:52 2019 +0200
(doc) Fix minor typo from example
It's farily easy to copy-paste the code without noticing that the
wrong extension is used
---
src/site/xdoc/examples.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/site/xdoc/examples.xml b/src/site/xdoc/examples.xml
index 81dfe23..b2ed464 100644
--- a/src/site/xdoc/examples.xml
+++ b/src/site/xdoc/examples.xml
@@ -782,7 +782,7 @@ bzIn.close();
get closed properly):</p>
<source><![CDATA[
InputStream in = Files.newInputStream(Paths.get("archive.tar"));
-OutputStream fout = Files.newOutputStream(Paths.get("archive.tar.gz"));
+OutputStream fout = Files.newOutputStream(Paths.get("archive.tar.bz2"));
BufferedOutputStream out = new BufferedOutputStream(fout);
BZip2CompressorOutputStream bzOut = new BZip2CompressorOutputStream(out);
final byte[] buffer = new byte[buffersize];