Skip to content

Commit 170345e

Browse files
authored
修改第十八章字符串start()和end()源码格式 (lingcoder#465)
统一源码格式,防止理解偏差
1 parent 6621fb0 commit 170345e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/book/18-Strings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,9 +1079,9 @@ public class StartEnd {
10791079
while(m.find())
10801080
d.display("find() '" + m.group() +
10811081
"' start = "+ m.start() + " end = " + m.end());
1082-
if(m.lookingAt()) // No reset() necessary
1083-
d.display("lookingAt() start = "
1084-
+ m.start() + " end = " + m.end());
1082+
if(m.lookingAt()) // No reset() necessary
1083+
d.display("lookingAt() start = "
1084+
+ m.start() + " end = " + m.end());
10851085
if(m.matches()) // No reset() necessary
10861086
d.display("matches() start = "
10871087
+ m.start() + " end = " + m.end());

0 commit comments

Comments
 (0)