Skip to content

Commit 8e8eca9

Browse files
hakanensarisferik
authored andcommitted
Fix RBS syntax error
The newly-released RBS 4.0 rejects void in union types at the parser level. The (Integer | void) return type on Readable#rewind now causes a hard parse error. Change to `void`, consistent with CompositeIO#rewind and the YARD @return annotation.
1 parent 866cb87 commit 8e8eca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sig/http.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ module HTTP
12721272
def size: () -> Integer
12731273

12741274
# Rewinds the IO to the beginning
1275-
def rewind: () -> (Integer | void)
1275+
def rewind: () -> void
12761276
end
12771277

12781278
class Part

0 commit comments

Comments
 (0)