Skip to content

Commit eefc884

Browse files
committed
Fix sample code in documentation to be Ruby instead of Go
Fixes some sample code on the defaults for `#by_state` so that it's Ruby code instead of Go. It was Go because it'd been copy/pasta'ed from an original Go docblock.
1 parent 98f94da commit eefc884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/insert_opts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class UniqueOpts
112112
# Unlike other unique options, ByState gets a default when it's not set for
113113
# user convenience. The default is equivalent to:
114114
#
115-
# ByState: []rivertype.JobState{rivertype.JobStateAvailable, rivertype.JobStateCompleted, rivertype.JobStateRunning, rivertype.JobStateRetryable, rivertype.JobStateScheduled}
115+
# by_state: [River::JOB_STATE_AVAILABLE, River::JOB_STATE_COMPLETED, River::JOB_STATE_RUNNING, River::JOB_STATE_RETRYABLE, River::JOB_STATE_SCHEDULED]
116116
#
117117
# With this setting, any jobs of the same kind that have been completed or
118118
# discarded, but not yet cleaned out by the system, won't count towards the

0 commit comments

Comments
 (0)