encoding/cbor: rename diagnose to to_diagnostic_format to be clearer

This commit is contained in:
Laytan Laats
2024-03-04 17:26:19 +01:00
parent 9fc8587e2c
commit 04bd3cc525
3 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -117,8 +117,8 @@ Example:
assert(derr == nil)
defer cbor.destroy(decoded)
// Turn the CBOR into a human readable representation.
diagnosis, eerr := cbor.diagnose(decoded)
// Turn the CBOR into a human readable representation defined as the diagnostic format in [[RFC 8949 Section 8;https://www.rfc-editor.org/rfc/rfc8949.html#name-diagnostic-notation]].
diagnosis, eerr := cbor.to_diagnostic_format(decoded)
assert(eerr == nil)
defer delete(diagnosis)