From e2554a3c29287e4b501dceb0311c58acde4d4019 Mon Sep 17 00:00:00 2001 From: PRIMITIFA <189084579+PRIMITIFA@users.noreply.github.com> Date: Tue, 1 Dec 2026 10:49:55 +0200 Subject: [PATCH] Correct the mixed timeout forms example in UPGRADING.md --- UPGRADING.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)