From 2e7d22a3bd109522754a34dc93f586e196b403dd Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Fri, 22 Jun 2018 10:01:58 +0100 Subject: [PATCH] gvariant-text: fix bytestring example ord('a') == 97 == 0x61 != 0x97. >>> GLib.Variant.parse(None, "[byte 0x97, 0x98, 0x99, 0]", None, None) GLib.Variant('ay', b'\227\230\231') >>> GLib.Variant.parse(None, "[byte 0x61, 0x62, 0x63, 0]", None, None) GLib.Variant('ay', b'abc') --- docs/reference/glib/gvariant-text.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/glib/gvariant-text.xml b/docs/reference/glib/gvariant-text.xml index a1a53802d..d569f0c74 100644 --- a/docs/reference/glib/gvariant-text.xml +++ b/docs/reference/glib/gvariant-text.xml @@ -579,7 +579,7 @@ forms \0nnn and \xnn. - b'abc' is equivalent to [byte 0x97, 0x98, 0x99, 0]. + b'abc' is equivalent to [byte 0x61, 0x62, 0x63, 0]. When formatting arrays of bytes, the printer will choose to display the array as a bytestring if it contains