summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-14 11:44:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-10-14 11:44:43 (GMT)
commit127cb6481c857574d43245e431f803526c86c46e (patch)
tree2a6829fb627d58c09ff484ff05e04061160a92ec /Help
parentc5a24cd52b9bd59d7c162448077a491bfa88cbf5 (diff)
parent67f8d20a8e13033818fe3ddcbe6f9beada0b2b16 (diff)
downloadCMake-127cb6481c857574d43245e431f803526c86c46e.zip
CMake-127cb6481c857574d43245e431f803526c86c46e.tar.gz
CMake-127cb6481c857574d43245e431f803526c86c46e.tar.bz2
Merge topic 'doc_clarify_list_pop' into release-3.22
67f8d20a8e Help: clarify list(POP_* <in_out> <in_out>) behavior Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6620
Diffstat (limited to 'Help')
-rw-r--r--Help/command/list.rst10
1 files changed, 6 insertions, 4 deletions
diff --git a/Help/command/list.rst b/Help/command/list.rst
index f46641f..9b49cb4 100644
--- a/Help/command/list.rst
+++ b/Help/command/list.rst
@@ -161,8 +161,9 @@ Inserts elements to the list to the specified location.
.. versionadded:: 3.15
If no variable name is given, removes exactly one element. Otherwise,
-assign the last element's value to the given variable and removes it,
-up to the last variable name given.
+with `N` variable names provided, assign the last `N` elements' values
+to the given variables and then remove the last `N` values from
+``<list>``.
.. _POP_FRONT:
@@ -173,8 +174,9 @@ up to the last variable name given.
.. versionadded:: 3.15
If no variable name is given, removes exactly one element. Otherwise,
-assign the first element's value to the given variable and removes it,
-up to the last variable name given.
+with `N` variable names provided, assign the first `N` elements' values
+to the given variables and then remove the first `N` values from
+``<list>``.
.. _PREPEND: