Skip to content

Commit

Permalink
Merge pull request #14 from ruby/feature-16495
Browse files Browse the repository at this point in the history
[Feature #16495] Do not include a backtick in error messages and backtraces
  • Loading branch information
hsbt authored Feb 16, 2024
2 parents 8dba149 + 94ba485 commit 811a941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def parse(date, now=self.now)
#
def strptime(date, format, now=self.now)
d = Date._strptime(date, format)
raise ArgumentError, "invalid date or strptime format - `#{date}' `#{format}'" unless d
raise ArgumentError, "invalid date or strptime format - '#{date}' '#{format}'" unless d
if seconds = d[:seconds]
if sec_fraction = d[:sec_fraction]
usec = sec_fraction * 1000000
Expand Down

0 comments on commit 811a941

Please sign in to comment.