summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2017-04-03 15:32:15 +0200
committerEugen Wissner <belka@caraus.de>2017-04-03 15:32:15 +0200
commitbc2a6d2703314214eadec1c8b9714e19eaed434d (patch)
treecace5034e0ac668bd19108348554cb395865aaef /source
parentb458250ad7e33c17e18b0c67e17d6f011fa7639e (diff)
downloadtanya-bc2a6d2703314214eadec1c8b9714e19eaed434d.tar.gz
Swap toHostOrder template parameters
Diffstat (limited to 'source')
-rw-r--r--source/tanya/network/inet.d4
1 files 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)