Skip to content

Commit

Permalink
Actually implement the stack
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleymackey committed Jan 6, 2024
1 parent 454415b commit df50d94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/detect/swift/default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ public struct Stack<T>: Equatable where T: Equatable {
self.items = items
}

public mutating func push(item: T) { /* /* ... */ */ }
public mutating func push(item: T) { items.append(item) }

/* /* ... */ */

fileprivate var description: String {
if items.isEmpty {
Expand Down

0 comments on commit df50d94

Please sign in to comment.