From e5eb84aa8ceebfa42c4fc02876f4902b461f87f3 Mon Sep 17 00:00:00 2001 From: Yannick Moy Date: Wed, 15 Nov 2023 09:34:35 +0100 Subject: ada: Fix spelling of functions with(out) "side effects" Correct spelling does not include an hyphen. Fix comments and one error message. Also fix other mispellings of "side-effect" or "side effect" depending on the case (adjective should have hyphen), and "side-effect-free" with double hyphen as an adjective. gcc/ada/ * checks.adb, exp_aggr.adb, exp_ch4.ads, exp_ch5.adb, exp_util.adb, exp_util.ads, inline.adb, sem_ch13.adb, sem_ch6.adb, sem_ch8.adb, sem_prag.adb, sem_util.ads: Fix comments and typos. --- gcc/ada/sem_ch6.adb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/ada/sem_ch6.adb') diff --git a/gcc/ada/sem_ch6.adb b/gcc/ada/sem_ch6.adb index 4f2521a..8ee7578 100644 --- a/gcc/ada/sem_ch6.adb +++ b/gcc/ada/sem_ch6.adb @@ -4612,7 +4612,7 @@ package body Sem_Ch6 is Analyze_SPARK_Subprogram_Specification (Specification (N)); - -- A function with side-effects shall not be an expression function + -- A function with side effects shall not be an expression function -- (SPARK RM 6.1.11(6)). if Present (Spec_Id) @@ -5240,7 +5240,7 @@ package body Sem_Ch6 is Analyze_Aspect_Specifications (N, Designator); -- The legality of a function specification in SPARK depends on whether - -- the function is a function with or without side-effects. Analyze the + -- the function is a function with or without side effects. Analyze the -- pragma in advance if present, before specific SPARK legality checks. Analyze_Pragmas_If_Present (N, Pragma_SPARK_Mode); -- cgit v1.1