Skip to content

Commit 018980b

Browse files
committed
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. Changed to `Integer`, matching IO#rewind and StringIO#rewind.
1 parent 866cb87 commit 018980b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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: () -> Integer
12761276
end
12771277

12781278
class Part

0 commit comments

Comments
 (0)