Skip to content

Commit

Permalink
Fix ruby code bug: (#27)
Browse files Browse the repository at this point in the history
```
$ ruby -e "puts 'ruby'.starts_with?('r')"
-e:1:in `<main>': undefined method `starts_with?' for "ruby":String (NoMethodError)

puts 'ruby'.starts_with?('r')
           ^^^^^^^^^^^^^
Did you mean?  start_with?
$ ruby -e "puts 'ruby'.start_with?('r')"
true
```

Added in last PR by mistake.
  • Loading branch information
schneems authored Sep 20, 2023
1 parent e64c602 commit cf7eb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def fetch(url, name = nil)
end

# https://bugs.ruby-lang.org/issues/18658
if stack == "heroku-22" && version.starts_with?("3.0")
if stack == "heroku-22" && version.start_with?("3.0")
raise "Cannot build Ruby 3.0 on heroku-22"
end

Expand Down

0 comments on commit cf7eb1a

Please sign in to comment.