public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Marc Poulhiès" <poulhies@adacore.com>
To: gcc-patches@gcc.gnu.org
Cc: Piotr Trojanek <trojanek@adacore.com>
Subject: [COMMITTED] ada: Fix typo in comment referring to pragma Restrictions
Date: Fri,  4 Nov 2022 14:58:50 +0100	[thread overview]
Message-ID: <20221104135850.87177-1-poulhies@adacore.com> (raw)

From: Piotr Trojanek <trojanek@adacore.com>

Comment cleanup only.

gcc/ada/

	* libgnat/g-excact.ads
	(Register_Global_Action): Refill comment.
	(Name_To_Id): Change pragma Restriction from singular to plural.

Tested on x86_64-pc-linux-gnu, committed on master.

---
 gcc/ada/libgnat/g-excact.ads | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gcc/ada/libgnat/g-excact.ads b/gcc/ada/libgnat/g-excact.ads
index 110154651e0..c2e0b30b1da 100644
--- a/gcc/ada/libgnat/g-excact.ads
+++ b/gcc/ada/libgnat/g-excact.ads
@@ -71,8 +71,7 @@ package GNAT.Exception_Actions is
    --  If Action is null, this will in effect cancel all exception actions.
 
    procedure Register_Global_Unhandled_Action (Action : Exception_Action);
-   --  Similar to Register_Global_Action, called on unhandled exceptions
-   --  only.
+   --  Similar to Register_Global_Action, called on unhandled exceptions only
 
    procedure Register_Id_Action
      (Id     : Exception_Id;
@@ -90,7 +89,7 @@ package GNAT.Exception_Actions is
    --  an exception that is declared within an unlabeled block.
    --
    --  Note: All non-predefined exceptions will return Null_Id for programs
-   --  compiled with pragma Restriction (No_Exception_Registration)
+   --  compiled with pragma Restrictions (No_Exception_Registration).
 
    function Is_Foreign_Exception (E : Exception_Occurrence) return Boolean;
    --  Tell whether the exception occurrence E represents a foreign exception,
-- 
2.34.1


                 reply	other threads:[~2022-11-04 13:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221104135850.87177-1-poulhies@adacore.com \
    --to=poulhies@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=trojanek@adacore.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).