Skip to content

Commit cf1d8ff

Browse files
committed
maintain consistent formatting
1 parent 48e0835 commit cf1d8ff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Ordered Set/OrderedSet.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,12 @@ public class OrderedSet<T: Hashable> {
9696
// but instead doing manually, and running for loop just once at end
9797
}
9898
insert(object, at:0)
99-
10099
}
101100

102-
func debug_str() -> String // useful for printing/debugging
103-
{
101+
// string representation, useful for printing/debugging
102+
public func debug_str() -> String {
104103
var str = "OrderedSet: \n"
105104
str += objects.map{"\($0)"}.joined(separator: ",")
106-
107105
return str
108106
}
109107
}

0 commit comments

Comments
 (0)