From ab25296c0f51f1022f01cd99dfb45f1775de8799 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 15 Jan 2017 21:20:23 -0800 Subject: [PATCH] Make concurrency clear for #9 --- hashstructure.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hashstructure.go b/hashstructure.go index 60c8839..1800f43 100644 --- a/hashstructure.go +++ b/hashstructure.go @@ -26,7 +26,9 @@ type HashOptions struct { // Hash returns the hash value of an arbitrary value. // // If opts is nil, then default options will be used. See HashOptions -// for the default values. +// for the default values. The same *HashOptions value cannot be used +// concurrently. None of the values within a *HashOptions struct are +// safe to read/write while hashing is being done. // // Notes on the value: //