Skip to content

Commit 3783714

Browse files
authored
Merge pull request #2647 from wilkice/main
[docs fix] code indentation
2 parents 352b05c + 3bab51f commit 3783714

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/java/io/io-design-patterns.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ BufferedReader bufferedReader = new BufferedReader(isr);
118118

119119
```java
120120
public class InputStreamReader extends Reader {
121-
//用于解码的对象
122-
private final StreamDecoder sd;
121+
//用于解码的对象
122+
private final StreamDecoder sd;
123123
public InputStreamReader(InputStream in) {
124124
super(in);
125125
try {
@@ -130,7 +130,7 @@ public class InputStreamReader extends Reader {
130130
}
131131
}
132132
// 使用 StreamDecoder 对象做具体的读取工作
133-
public int read() throws IOException {
133+
public int read() throws IOException {
134134
return sd.read();
135135
}
136136
}

0 commit comments

Comments
 (0)