Skip to content

Commit 4d010d1

Browse files
puranjaymohanJonathan Corbet
authored andcommitted
Security: Documentation: Replace deprecated :c:func: Usage
Replace :c:func: with ``func()`` as the previous usage is deprecated. Remove an extra ')' to fix broken cross reference. Signed-off-by: Puranjay Mohan <puranjay12@gmail.com> Link: https://lore.kernel.org/r/20200706184956.6928-1-puranjay12@gmail.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 8286de7 commit 4d010d1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Documentation/security/credentials.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,9 @@ still at this point.
453453

454454
When replacing the group list, the new list must be sorted before it
455455
is added to the credential, as a binary search is used to test for
456-
membership. In practice, this means :c:func:`groups_sort` should be
457-
called before :c:func:`set_groups` or :c:func:`set_current_groups`.
458-
:c:func:`groups_sort)` must not be called on a ``struct group_list`` which
456+
membership. In practice, this means groups_sort() should be
457+
called before set_groups() or set_current_groups().
458+
groups_sort() must not be called on a ``struct group_list`` which
459459
is shared as it may permute elements as part of the sorting process
460460
even if the array is already sorted.
461461

0 commit comments

Comments
 (0)