diff --git a/docs/bugpattern/ClosingStandardOutputStreams.md b/docs/bugpattern/ClosingStandardOutputStreams.md index 46200e2d61a9..329e941a70f6 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: