Skip to content

Commit

Permalink
Added public modifiers to init.
Browse files Browse the repository at this point in the history
  • Loading branch information
Olcay Taner YILDIZ committed Aug 27, 2020
1 parent 683ffe3 commit 65878d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/DataStructure/Cache/LRUCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class LRUCache<K: Hashable, T>{

- Parameter cacheSize : Integer input public funcining cache size.
*/
init(cacheSize: Int){
public init(cacheSize: Int){
self.cacheSize = cacheSize
self.cache = CacheLinkedList<K, T>()
self.map = [:]
Expand Down
2 changes: 1 addition & 1 deletion Sources/DataStructure/CounterHashMap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class CounterHashMap<K : Hashable>{

private var data: [K: Int]

init(){
public init(){
data = [:]
}

Expand Down

0 comments on commit 65878d0

Please sign in to comment.