diff --git a/UPGRADING.md b/UPGRADING.md index 1f9855cc..85256a8f 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -285,9 +285,9 @@ HTTP.timeout(read: 0.25, write: 0.25, connect: 0.25).get(url) HTTP.timeout(read: 5, keep_alive: 10) # => ArgumentError: unknown timeout options: keep_alive -# v6 — rejects mixed short/long forms -HTTP.timeout(read: 5, write_timeout: 3) -# => ArgumentError (use one form consistently) +# v6 — rejects the short and long form of the same option +HTTP.timeout(read: 5, read_timeout: 3) +# => ArgumentError: can't pass both read and read_timeout # Valid in v6 HTTP.timeout(read: 5, write: 3, connect: 2)