From e72506d08545c17c8f71a2d7167828a3c6aef8db Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 27 Jun 2022 07:41:13 -0400 Subject: [PATCH] Fix the annotation for hb_blob_get_data This function will return NULL for the the empty blob. That is important information for bindings that treat nullability as a type trait. --- src/hb-blob.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-blob.cc b/src/hb-blob.cc index b382bf717..b561a9374 100644 --- a/src/hb-blob.cc +++ b/src/hb-blob.cc @@ -369,7 +369,7 @@ hb_blob_get_length (hb_blob_t *blob) * * Fetches the data from a blob. * - * Returns: (transfer none) (array length=length): the byte data of @blob. + * Returns: (nullable) (transfer none) (array length=length): the byte data of @blob. * * Since: 0.9.2 **/