diff --git a/src/vte.c b/src/vte.c
index bbe6cf6..708a439 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -6439,9 +6439,9 @@ vte_terminal_get_text_maybe_wrapped(VteTerminal *terminal,
 /**
  * vte_terminal_get_text:
  * @terminal: a #VteTerminal
- * @is_selected: (scope call): a #VteSelectionFunc callback
+ * @is_selected: (scope call) (allow-none): a #VteSelectionFunc callback
  * @user_data: (closure): user data to be passed to the callback
- * @attributes: (out) (transfer full) (array) (element-type Vte.CharAttributes): location for storing text attributes
+ * @attributes: (array) (element-type Vte.CharAttributes): location for storing text attributes
  *
  * Extracts a view of the visible part of the terminal.  If @is_selected is not
  * %NULL, characters will only be read if @is_selected returns %TRUE after being
