Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist committed Nov 6, 2024
1 parent 05c1960 commit d7eb89a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Iterator/ArrayIterator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ open class ArrayIterator<T> {
*/
extension ArrayIterator: Iteratable {}

//let arrIterator = ArrayIterator(array:[1,2,3,4,5])
// let arrIterator = ArrayIterator(array:[1,2,3,4,5])
// while arrIterator.hasNext() {
// Swift.print(arrIterator.next())
// }
2 changes: 1 addition & 1 deletion Tests/IteratorTests/demo/DemoIterator+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extension DemoIterator {
* The callback function takes a DemoItem and a boolean value as arguments and returns nothing.
* The boolean value indicates whether the work was successful or not.
*/
func iterate(callBack:@escaping Callback) {
func iterate(callBack: @escaping Callback) {
Swift.print("iterate")
if hasNext() { // Check if there is a next item in the iterator
let item: DemoItem = next() // Get the next item in the iterator
Expand Down
2 changes: 1 addition & 1 deletion Tests/IteratorTests/demo/DemoIterator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DemoIterator: ArrayIterator<DemoItem> {
* - array: The array of DemoItem objects to iterate through
* - onComplete: The completion handler to call when the iteration is done
*/
init(array: [DemoItem], onComplete:@escaping Completed) {
init(array: [DemoItem], onComplete: @escaping Completed) {
// Set the completion handler for the iterator
self.complete = onComplete
// Call the parent class's initializer with the given array
Expand Down

0 comments on commit d7eb89a

Please sign in to comment.