I'm not sure that this is the right place to the issue I have discovered, but it looks related. The documentation page for Drupal 10 still has the wrong example: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Utility%2...
The file "core/lib/Drupal/Core/Utility/link.api.php" referenced by the documentation does not exist.
Also, the link to non-existent file "core/lib/Drupal/Core/Utility/link.api.php" is present on the page with hooks list: https://api.drupal.org/api/drupal/core%21core.api.php/group/hooks/10- 🇷🇺Russia Chi
That happened because 📌 Move hook_link_alter documentation to core/lib/Drupal/Core/Utility/link.api.php Fixed copied old hook code to link.api.php.
@wombatbuddy can you create an issue for this?