From 963925de5a82054ecff25f1ba8f5c42d8658c1d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veiko=20K=C3=A4=C3=A4p?= Date: Tue, 4 May 2021 13:21:31 +0300 Subject: [PATCH] fix typo in documentation Rename DecodeHookFuncRaw to DecodeHookFuncValue --- mapstructure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapstructure.go b/mapstructure.go index 3643901f..8562300d 100644 --- a/mapstructure.go +++ b/mapstructure.go @@ -192,7 +192,7 @@ type DecodeHookFuncType func(reflect.Type, reflect.Type, interface{}) (interface // source and target types. type DecodeHookFuncKind func(reflect.Kind, reflect.Kind, interface{}) (interface{}, error) -// DecodeHookFuncRaw is a DecodeHookFunc which has complete access to both the source and target +// DecodeHookFuncValue is a DecodeHookFunc which has complete access to both the source and target // values. type DecodeHookFuncValue func(from reflect.Value, to reflect.Value) (interface{}, error)