aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2020-05-22 13:56:06 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2020-07-08 10:55:54 -0400
commit72145c1ee83fc5d7b8f65084442a7397bf154154 (patch)
tree639f17a8edd96e54e5c4d0792638405f97f64c66 /gcc
parenta1014c8136a0d23408e83620ee7d12be0ab27831 (diff)
downloadgcc-72145c1ee83fc5d7b8f65084442a7397bf154154.zip
gcc-72145c1ee83fc5d7b8f65084442a7397bf154154.tar.gz
gcc-72145c1ee83fc5d7b8f65084442a7397bf154154.tar.bz2
[Ada] Fix typo and layout in comments about matching
gcc/ada/ * erroutc.adb (Matches): Fix comments.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/erroutc.adb12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/ada/erroutc.adb b/gcc/ada/erroutc.adb
index 435cb14..0c5d98c 100644
--- a/gcc/ada/erroutc.adb
+++ b/gcc/ada/erroutc.adb
@@ -52,7 +52,7 @@ package body Erroutc is
-----------------------
function Matches (S : String; P : String) return Boolean;
- -- Returns true if the String S patches the pattern P, which can contain
+ -- Returns true if the String S matches the pattern P, which can contain
-- wildcard chars (*). The entire pattern must match the entire string.
-- Case is ignored in the comparison (so X matches x).
@@ -409,17 +409,17 @@ package body Erroutc is
if PPtr = PLast and then P (PPtr) = '*' then
return True;
- -- Return True if both pattern and string exhausted
+ -- Return True if both pattern and string exhausted
elsif PPtr > PLast and then SPtr > Slast then
return True;
- -- Return False, if one exhausted and not the other
+ -- Return False, if one exhausted and not the other
elsif PPtr > PLast or else SPtr > Slast then
return False;
- -- Case where pattern starts with asterisk
+ -- Case where pattern starts with asterisk
elsif P (PPtr) = '*' then
@@ -435,13 +435,13 @@ package body Erroutc is
return False;
- -- Dealt with end of string and *, advance if we have a match
+ -- Dealt with end of string and *, advance if we have a match
elsif Fold_Lower (S (SPtr)) = Fold_Lower (P (PPtr)) then
SPtr := SPtr + 1;
PPtr := PPtr + 1;
- -- If first characters do not match, that's decisive
+ -- If first characters do not match, that's decisive
else
return False;