Просмотр исходного кода

Help: get_property() result var is unset if property is not set

Fixes: #26152
Craig Scott 1 год назад
Родитель
Сommit
a1fdcb9d47
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      Help/command/get_property.rst

+ 4 - 3
Help/command/get_property.rst

@@ -91,9 +91,10 @@ It must be one of the following:
   Scope is unique and does not accept a name.
 
 The required ``PROPERTY`` option is immediately followed by the name of
-the property to get.  If the property is not set an empty value is
-returned, although some properties support inheriting from a parent scope
-if defined to behave that way (see :command:`define_property`).
+the property to get.  If the property is not set, the named ``<variable>``
+will be unset in the calling scope upon return, although some properties
+support inheriting from a parent scope if defined to behave that way
+(see :command:`define_property`).
 
 If the ``SET`` option is given, the variable is set to a boolean
 value indicating whether the property has been set.  If the ``DEFINED``