From 010e48ad501f1b039765e9de7b8068a644972015 Mon Sep 17 00:00:00 2001 From: Khalid Abdullah Date: Sat, 28 Oct 2023 03:43:18 +0600 Subject: [PATCH] Typo fixed in ClosingStandardOutputStreams.md --- docs/bugpattern/ClosingStandardOutputStreams.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/bugpattern/ClosingStandardOutputStreams.md b/docs/bugpattern/ClosingStandardOutputStreams.md index 46200e2d61a..329e941a70f 100644 --- a/docs/bugpattern/ClosingStandardOutputStreams.md +++ b/docs/bugpattern/ClosingStandardOutputStreams.md @@ -3,7 +3,7 @@ subsequent standard output to be dropped, including stack traces from exceptions that propagate to the top level. Avoid using try-with-resources to manage `PrintWriter`s or `OutputStream`s that -wrap `System.out` or `System.err`, since the try-with-resource statemnet will +wrap `System.out` or `System.err`, since the try-with-resource statement will close the underlying streams. That is, prefer this: