[Ada] Clarify protection offered by preconditions on Ada.Text_IO units
authorYannick Moy <moy@adacore.com>
Tue, 7 Jul 2020 09:19:47 +0000 (11:19 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 19 Oct 2020 09:53:37 +0000 (05:53 -0400)
gcc/ada/

* libgnat/a-textio.ads: Update top-level comment.

gcc/ada/libgnat/a-textio.ads

index 6e5e392948128842c2ea61c42ef7fdd2c8c95703..36a4b6583b679a1a5f8011ecac0e44e6a2c7dd94 100644 (file)
@@ -36,8 +36,9 @@
 --  Preconditions in this unit are meant for analysis only, not for run-time
 --  checking, so that the expected exceptions are raised. This is enforced by
 --  setting the corresponding assertion policy to Ignore. These preconditions
---  are partial and protect against Status_Error, Mode_Error, and Layout_Error,
---  but not against other types of errors.
+--  are partial. They protect fully against Status_Error and Mode_Error,
+--  partially against Layout_Error (see SPARK User's Guide for details), and
+--  not against other types of errors.
 
 pragma Assertion_Policy (Pre => Ignore);