From 56d8f14ab29319c77808bd2ee5480dbbf3b2d52e Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 19 May 2024 00:31:25 +0200 Subject: [PATCH] docs: Correct octal format in gvariant-text-format There is no o or 0 prefix, just one to three octal numbers. --- docs/reference/glib/gvariant-text-format.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/glib/gvariant-text-format.md b/docs/reference/glib/gvariant-text-format.md index 4a142e460..c58a956aa 100644 --- a/docs/reference/glib/gvariant-text-format.md +++ b/docs/reference/glib/gvariant-text-format.md @@ -92,7 +92,7 @@ following `\` is copied literally (for example, `\"` or `\\`) but for forwards compatibility with future additions you should only use this feature when necessary for escaping backslashes or quotes. -The usual octal and hexadecimal escapes `\0nnn` and `\xnn` are not supported +The usual octal and hexadecimal escapes `\nnn` and `\xnn` are not supported here. Those escapes are used to encode byte values and `GVariant` strings are Unicode. @@ -306,7 +306,7 @@ is no fundamental difference between the two different types of quotes. Bytestrings support the full range of escapes that you would expect (ie: those supported by [`func@GLib.strcompress`]. This includes the normal control sequence escapes (as mentioned in the section on strings) as well as octal -and hexadecimal escapes of the forms `\0nnn` and `\xnn`. +and hexadecimal escapes of the forms `\nnn` and `\xnn`. `b'abc'` is equivalent to `[byte 0x61, 0x62, 0x63, 0]`.