Skip to content

Commit 584140b

Browse files
committed
Fix typos: occurrencs -> occurrences, occuring -> occurring
1 parent 4e6a817 commit 584140b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/query_packwerk/file_cache.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def get_file(file_name)
7474
end
7575
end
7676

77-
# Get all occurrencs of the violation's constant in a file
77+
# Get all occurrences of the violation's constant in a file
7878
sig { params(file_name: String, class_name: String).returns(T::Array[RuboCop::AST::Node]) }
7979
def get_all_const_occurrences(file_name:, class_name:)
8080
const_key = [file_name, class_name]

lib/query_packwerk/violations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def sources_with_locations
159159
end
160160

161161
# Instead of getting all instances of the source, count how often each occurs, with the option to
162-
# provide a threshold to remove lower-occuring items.
162+
# provide a threshold to remove lower-occurring items.
163163
sig { params(threshold: Integer).returns(T::Hash[String, T::Hash[String, Integer]]) }
164164
def source_counts(threshold: 0)
165165
load_sources!

0 commit comments

Comments
 (0)