Skip to content

Commit

Permalink
Use cleaner code for Ruby dice roll (open-telemetry#5223)
Browse files Browse the repository at this point in the history
Co-authored-by: Kayla Reopelle <87386821+kaylareopelle@users.noreply.github.com>
  • Loading branch information
radar and kaylareopelle committed Sep 20, 2024
1 parent 5827d94 commit f212ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/docs/languages/ruby/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ file in your preferred editor and update it with the following code:
```ruby
class DiceController < ApplicationController
def roll
render json: (rand(6) + 1).to_s
render json: rand(1..6).to_s
end
end
```
Expand Down

0 comments on commit f212ada

Please sign in to comment.