Skip to content

Commit bd2914f

Browse files
committed
No need to duplicate pre-DocC tests
These aren't used for anything today -- they're just an (intentional) leftover from RST migration, to ease a possible re-adoption of tested code listings some day.
1 parent 80c7f4a commit bd2914f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

TSPL.docc/LanguageGuide/CollectionTypes.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,6 @@ print("someInts is of type [Int] with \(someInts.count) items.")
105105
// Prints "someInts is of type [Int] with 0 items."
106106
```
107107

108-
<!--
109-
- test: `arraysEmpty`
110-
111-
```swifttest
112-
-> var someInts = [Int]()
113-
-> print("someInts is of type [Int] with \(someInts.count) items.")
114-
<- someInts is of type [Int] with 0 items.
115-
```
116-
-->
117-
118108
Both approaches produce the same result.
119109
However, the empty array literal (`[]`) is the preferred way to
120110
initialize an empty array because it is more concise and aligns with

0 commit comments

Comments
 (0)