diff options
| author | Eugen Wissner <belka@caraus.de> | 2018-05-17 05:30:49 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2018-05-17 05:30:49 +0200 |
| commit | 385ec19e2fa21c1d59a47bc8ffb8043879f79d63 (patch) | |
| tree | 414739041c38fb85d6d11391d3b56e17a42846f0 | |
| parent | 205d7a080ec7f867319f4c43efbc8f8e78690442 (diff) | |
| download | tanya-385ec19e2fa21c1d59a47bc8ffb8043879f79d63.tar.gz | |
hash.lookup: Reformat the docs
| -rw-r--r-- | source/tanya/hash/lookup.d | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/tanya/hash/lookup.d b/source/tanya/hash/lookup.d index b006239..f564b53 100644 --- a/source/tanya/hash/lookup.d +++ b/source/tanya/hash/lookup.d @@ -77,10 +77,11 @@ private struct FNV } /** - * Takes an a argument of an arbitrary type $(D_PARAM T) and calculates the hash value. + * Takes an argument of an arbitrary type $(D_PARAM T) and calculates the hash + * value. * * Hash calculation is supported for all scalar types. Aggregate types, like - *$(D_KEYWORD struct)s should implement `toHash`-function: + * $(D_KEYWORD struct)s, should implement `toHash`-function: * --- * size_t toHash() const * { @@ -96,7 +97,7 @@ private struct FNV * Individual values are combined then and the resulting hash is returned. * * Params: - * T = Hashable type. + * T = Hashable type. * key = Hashable value. * * Returns: Calculated hash value. @@ -124,7 +125,7 @@ version (unittest) ~ r10!x ~ r10!x ~ r10!x ~ r10!x ~ r10!x; enum string r500(string x) = r100!x ~ r100!x ~ r100!x ~ r100!x ~ r100!x; - private struct ToHash + private static struct ToHash { size_t toHash() const @nogc nothrow pure @safe { @@ -132,7 +133,7 @@ version (unittest) } } - private struct HashRange + private static struct HashRange { string fo = "fo"; @@ -152,7 +153,7 @@ version (unittest) } } - private struct ToHashRange + private static struct ToHashRange { bool empty_; |
