diff --git a/girs/Gst-1.0.gir b/girs/Gst-1.0.gir
index 0def2f8a85..9693d2e87e 100644
--- a/girs/Gst-1.0.gir
+++ b/girs/Gst-1.0.gir
@@ -22233,7 +22233,7 @@ lifetime of the process, e.g. has to be a static string.
Sets @s to the string @value of length @len. @value needs to be valid for the
remaining lifetime of the process, e.g. has to be a static string.
-@value does not have to be NUL-terminated and @len should not include the
+@value must be NUL-terminated and @len should not include the
NUL-terminator.
diff --git a/subprojects/gstreamer/gst/gstidstr.c b/subprojects/gstreamer/gst/gstidstr.c
index 9e3674aa34..c8e2a9c5c6 100644
--- a/subprojects/gstreamer/gst/gstidstr.c
+++ b/subprojects/gstreamer/gst/gstidstr.c
@@ -158,7 +158,7 @@ gst_id_str_set_static_str (GstIdStr * s, const gchar * value)
* Sets @s to the string @value of length @len. @value needs to be valid for the
* remaining lifetime of the process, e.g. has to be a static string.
*
- * @value does not have to be NUL-terminated and @len should not include the
+ * @value must be NUL-terminated and @len should not include the
* NUL-terminator.
*
* Since: 1.26