From d5437b7a4aa62bbde1b74e81626019716fd5b402 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Mon, 16 Dec 2024 22:25:44 +0800 Subject: [PATCH] fixes #24538 (#24541) fixes #24538 (cherry picked from commit 91d1933ea2038c4d6cee0e7b3694266fd30260ac) --- lib/pure/asyncnet.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/asyncnet.nim b/lib/pure/asyncnet.nim index ed787ad214..7a6d3bb0ee 100644 --- a/lib/pure/asyncnet.nim +++ b/lib/pure/asyncnet.nim @@ -915,7 +915,7 @@ proc recvFrom*(socket: AsyncSocket, data: FutureVar[string], size: int, "Cannot `recvFrom` on a TCP socket. Use `recv` or `recvInto` instead") assert(not socket.closed, "Cannot `recvFrom` on a closed socket") assert(size == len(data.mget()), - "`date` was not initialized correctly. `size` != `len(data.mget())`") + "`data` was not initialized correctly. `size` != `len(data.mget())`") assert(46 == len(address.mget()), "`address` was not initialized correctly. 46 != `len(address.mget())`")