Skip to content

Commit

Permalink
doc update regarding string pointer destinations
Browse files Browse the repository at this point in the history
  • Loading branch information
trobro authored Apr 18, 2024
1 parent bdaa45f commit 5b236b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5b236b5

Please sign in to comment.