Skip to content

Commit

Permalink
[DOC] Fix the broken format of RubyVM::YJIT.enable docs
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Dec 25, 2024
1 parent 7245d3e commit e25b350
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions yjit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,14 @@ def self.reset_stats!
# Enable \YJIT compilation. `stats` option decides whether to enable \YJIT stats or not. `compilation_log` decides
# whether to enable \YJIT compilation logging or not.
#
# `stats`:
# * `false`: Don't enable stats.
# * `true`: Enable stats. Print stats at exit.
# * `:quiet`: Enable stats. Do not print stats at exit.
#
# `log`:
# * `false`: Don't enable the log.
# * `true`: Enable the log. Print log at exit.
# * `:quiet`: Enable the log. Do not print log at exit.
# * `stats`:
# * `false`: Don't enable stats.
# * `true`: Enable stats. Print stats at exit.
# * `:quiet`: Enable stats. Do not print stats at exit.
# * `log`:
# * `false`: Don't enable the log.
# * `true`: Enable the log. Print log at exit.
# * `:quiet`: Enable the log. Do not print log at exit.
def self.enable(stats: false, log: false)
return false if enabled?
at_exit { print_and_dump_stats } if stats
Expand Down

0 comments on commit e25b350

Please sign in to comment.