From 3bab51fc416cd7f3a0e22483a3a8319a784f38a0 Mon Sep 17 00:00:00 2001 From: darcy Date: Tue, 18 Mar 2025 11:33:01 +0800 Subject: [PATCH] [docs fix] code indentation --- docs/java/io/io-design-patterns.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/java/io/io-design-patterns.md b/docs/java/io/io-design-patterns.md index 5408c060..f005a18e 100644 --- a/docs/java/io/io-design-patterns.md +++ b/docs/java/io/io-design-patterns.md @@ -118,8 +118,8 @@ BufferedReader bufferedReader = new BufferedReader(isr); ```java public class InputStreamReader extends Reader { - //用于解码的对象 - private final StreamDecoder sd; + //用于解码的对象 + private final StreamDecoder sd; public InputStreamReader(InputStream in) { super(in); try { @@ -130,7 +130,7 @@ public class InputStreamReader extends Reader { } } // 使用 StreamDecoder 对象做具体的读取工作 - public int read() throws IOException { + public int read() throws IOException { return sd.read(); } }