回答編集履歴
1
guard条件修正
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
guard count > 0, (range.upperBound - range.lowerBound) > count else {
|
7
|
+
guard count > 0, (range.upperBound - range.lowerBound + 1) >= count else {
|
8
8
|
|
9
9
|
|
10
10
|
|