From 5b236b532097d505bc8d1a73ee93d284490f27ae Mon Sep 17 00:00:00 2001 From: trobro Date: Thu, 18 Apr 2024 08:50:47 +0200 Subject: [PATCH] doc update regarding string pointer destinations --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a60d6c7..9018a00 100644 --- a/README.md +++ b/README.md @@ -349,7 +349,7 @@ Output: {3} ``` -String pointer destinations are treated the same as string destinations, so you cannot set a string pointer to `nil` by writing `null` in an Hjson file. Writing `null` in an Hjson file would result in the string "null" being stored in the destination string pointer. +String pointer destinations can be set to `nil` by writing `null` in an Hjson file. The same goes for a pointer destination of any type that implements `UnmarshalText()`. ## ElemTyper interface