Skip to content

Commit

Permalink
Fix typos (#389)
Browse files Browse the repository at this point in the history
Found via `typos --format brief`
  • Loading branch information
kianmeng authored May 30, 2024
1 parent d5f6b70 commit 711231e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lograge/formatters/key_value.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def format(key, value)

def parse_value(key, value)
# Exactly preserve the previous output
# Parsing this can be ambigious if the error messages contains
# Parsing this can be ambiguous if the error messages contains
# a single quote
return "'#{value}'" if key == :error
return Kernel.format('%.2f', value) if value.is_a? Float
Expand Down
2 changes: 1 addition & 1 deletion lib/lograge/formatters/ltsv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def fields_to_display(data)
def format(key, value)
if key == :error
# Exactly preserve the previous output
# Parsing this can be ambigious if the error messages contains
# Parsing this can be ambiguous if the error messages contains
# a single quote
value = "'#{escape value}'"
elsif value.is_a? Float
Expand Down

0 comments on commit 711231e

Please sign in to comment.