Skip to content

Commit

Permalink
Fix some typos (#2662)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne authored Dec 18, 2022
1 parent 4367d4e commit 1cad1c4
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ To deprecate a method/argument, add `extend Gem::Deprecate` to the top of the cl

## YAML files

Please use dash syntax for YAML arrays. The dash syntax faciliates code reviews by making it eaiser to see what items were added or removed from the lists.
Please use dash syntax for YAML arrays. The dash syntax facilitates code reviews by making it easier to see what items were added or removed from the lists.

Here is an example:

Expand Down
2 changes: 1 addition & 1 deletion doc/default/json.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Faker::Json

**shallow_json(width: width_int, options: options_hash)** -> JSON formated string
**shallow_json(width: width_int, options: options_hash)** -> JSON formatted string

Takes a width_int and options_hash where the number of key value pairs in the
returned JSON string is equal to the width_int.
Expand Down
2 changes: 1 addition & 1 deletion lib/faker/default/code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Code < Base
flexible :code
class << self
##
# Produces a random NPI (National Provider Identifer) code.
# Produces a random NPI (National Provider Identifier) code.
#
# @return [String]
#
Expand Down
2 changes: 1 addition & 1 deletion lib/faker/default/drone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def max_tilt_angle
end

##
# Returns operating temprature for drone in Fahrenheit
# Returns operating temperature for drone in Fahrenheit
#
# @return [String]
#
Expand Down
2 changes: 1 addition & 1 deletion lib/faker/default/food.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def measurement
end

##
# Retrieves metric mesurements
# Retrieves metric measurements
#
# @return [String]
#
Expand Down
2 changes: 1 addition & 1 deletion lib/faker/default/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def kidmod10(base)
mod10_remainder(weighted_sum)
end

# Calculates weigthed sum
# Calculates weighted sum
#
# For example with 12345678, [1,2]
# Ref.num. 1 2 3 4 5 6 7 8
Expand Down
16 changes: 8 additions & 8 deletions lib/faker/default/measurement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class << self
##
# Produces a random height measurement.
#
# @param amount [Integer] Speficies the random height value.
# @param amount [Integer] Specifies the random height value.
# @return [String]
#
# @example
Expand All @@ -26,7 +26,7 @@ def height(amount: rand(10))
##
# Produces a random length measurement.
#
# @param amount [Integer] Speficies the random length value.
# @param amount [Integer] Specifies the random length value.
# @return [String]
#
# @example
Expand All @@ -41,7 +41,7 @@ def length(amount: rand(10))
##
# Produces a random volume measurement.
#
# @param amount [Integer] Speficies the random volume value.
# @param amount [Integer] Specifies the random volume value.
# @return [String]
#
# @example
Expand All @@ -56,7 +56,7 @@ def volume(amount: rand(10))
##
# Produces a random weight measurement.
#
# @param amount [Integer] Speficies the random weight value.
# @param amount [Integer] Specifies the random weight value.
# @return [String]
#
# @example
Expand All @@ -71,7 +71,7 @@ def weight(amount: rand(10))
##
# Produces a random metric height measurement.
#
# @param amount [Integer] Speficies the random height value.
# @param amount [Integer] Specifies the random height value.
# @return [String]
#
# @example
Expand All @@ -86,7 +86,7 @@ def metric_height(amount: rand(10))
##
# Produces a random metric length measurement.
#
# @param amount [Integer] Speficies the random length value.
# @param amount [Integer] Specifies the random length value.
# @return [String]
#
# @example
Expand All @@ -101,7 +101,7 @@ def metric_length(amount: rand(10))
##
# Produces a random metric volume measurement.
#
# @param amount [Integer] Speficies the random volume value.
# @param amount [Integer] Specifies the random volume value.
# @return [String]
#
# @example
Expand All @@ -116,7 +116,7 @@ def metric_volume(amount: rand(10))
##
# Produces a random metric weight measurement.
#
# @param amount [Integer] Speficies the random weight value.
# @param amount [Integer] Specifies the random weight value.
# @return [String]
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/faker/default/phone_number.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def exchange_code
##
# Produces a random US or Canada-based extension / subscriber number. Can be used for both extensions and last four digits of phone number.
#
# @param length [Integer] Speficies the length of the return value.
# @param length [Integer] Specifies the length of the return value.
# @return [String]
#
# @example
Expand Down
2 changes: 1 addition & 1 deletion lib/faker/games/clash_of_clans.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def rank
end

##
# Produces the name of a defensive buiding from Clash Of Clans.
# Produces the name of a defensive building from Clash Of Clans.
#
# @return [String]
#
Expand Down
2 changes: 1 addition & 1 deletion lib/faker/games/myst.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def age
end

##
# Produces the name of a chracter from Myst.
# Produces the name of a character from Myst.
#
# @return [String]
#
Expand Down
2 changes: 1 addition & 1 deletion tasks/reformat_yaml.rake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def reformat_file(filename)
input = YAML.load_file(filename)
# Psych outputs non-indented hypendated array list items.
output = input.to_yaml(line_width: -1)
.gsub(/(^ *- .+$)/, ' \1') # Indent hypenated list items
.gsub(/(^ *- .+$)/, ' \1') # Indent hyphenated list items
.sub(/^---\n/, '') # Remove header

File.write(filename, output)
Expand Down
2 changes: 1 addition & 1 deletion test/faker/default/test_faker_hipster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_supplemental_words
@words.each { |w| assert_includes @complete_wordlist, w }
end

# Faker::Hipster.word generates random word from standart wordlist
# Faker::Hipster.word generates random word from standard wordlist
def test_word
@tester = Faker::Hipster
@standard_wordlist = I18n.translate('faker.hipster.words')
Expand Down
2 changes: 1 addition & 1 deletion test/faker/default/test_faker_lorem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_supplemental_words
@words.each { |w| assert_includes @complete_wordlist, w }
end

# Faker::Lorem.word generates random word from standart wordlist
# Faker::Lorem.word generates random word from standard wordlist
def test_word
@tester = Faker::Lorem
@standard_wordlist = I18n.translate('faker.lorem.words')
Expand Down

0 comments on commit 1cad1c4

Please sign in to comment.