From bc2a6d2703314214eadec1c8b9714e19eaed434d Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 3 Apr 2017 15:32:15 +0200 Subject: [PATCH] Swap toHostOrder template parameters --- source/tanya/network/inet.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/tanya/network/inet.d b/source/tanya/network/inet.d index 579bf7f..d69517c 100644 --- a/source/tanya/network/inet.d +++ b/source/tanya/network/inet.d @@ -298,14 +298,14 @@ version (PlattformUnittest) * failure will be caused. * * Params: - * R = Range type. * T = Desired return type. + * R = Range type. * range = Input range. * * Returns: Integral representation of $(D_PARAM range) with the host byte * order. */ -T toHostOrder(R, T = size_t)(R range) +T toHostOrder(T = size_t, R)(R range) if (isInputRange!R && !isInfinite!R && is(Unqual!(ElementType!R) == ubyte)