Skip to content

Commit a516b22

Browse files
committed
Rubocop
1 parent 1cd6a2c commit a516b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/openai/http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def to_json(string)
4949
# If the JSON object for a given data or error message is invalid, it is ignored.
5050
#
5151
# @param user_proc [Proc] The inner proc to call for each JSON object in the chunk.
52-
# @return [Proc] An outer proc that can be used to iterate over the raw stream, converting it to JSON.
52+
# @return [Proc] An outer proc that iterates over a raw stream, converting it to JSON.
5353
def to_json_stream(user_proc:)
5454
proc do |chunk, _|
5555
chunk.scan(/(?:data|error): (\{.*\})/i).flatten.each do |data|

0 commit comments

Comments
 (0)