Commit f5c31a46 by Ben Brosgol Committed by Pierre-Marie de Rodat

[Ada] Minor type/wording corrections

2018-01-11  Ben Brosgol  <brosgol@adacore.com>

gcc/ada/

	* doc/gnat_rm/implementation_defined_aspects.rst: Minor type/wording
	corrections.
	* gnat_rm.texi: Regenerate.

From-SVN: r256505
parent 07733aa1
2018-01-11 Ben Brosgol <brosgol@adacore.com>
* doc/gnat_rm/implementation_defined_aspects.rst: Minor type/wording
corrections.
* gnat_rm.texi: Regenerate.
2018-01-11 Ed Schonberg <schonberg@adacore.com> 2018-01-11 Ed Schonberg <schonberg@adacore.com>
* sem_ch12.adb (Check_Fixed_Point_Type): Do not apply check if the * sem_ch12.adb (Check_Fixed_Point_Type): Do not apply check if the
......
...@@ -302,14 +302,14 @@ Aspect Iterable ...@@ -302,14 +302,14 @@ Aspect Iterable
This aspect provides a light-weight mechanism for loops and quantified This aspect provides a light-weight mechanism for loops and quantified
expressions over container types, without the overhead imposed by the tampering expressions over container types, without the overhead imposed by the tampering
checks of standard Ada 2012 iterators. The value of the aspect is an aggregate checks of standard Ada 2012 iterators. The value of the aspect is an aggregate
with six named components, or which the last three are optional: ``First``, with six named components, of which the last three are optional: ``First``,
``Next``, ``Has_Element``,``Element``, ``Last``, and ``Previous``. ``Next``, ``Has_Element``, ``Element``, ``Last``, and ``Previous``.
When only the first three components are specified, only the When only the first three components are specified, only the
``for .. in`` form of iteration over cursors is available. When ``Element`` ``for .. in`` form of iteration over cursors is available. When ``Element``
is specified, both this form and the ``for .. of`` form of iteration over is specified, both this form and the ``for .. of`` form of iteration over
elements are available. If the last two components are specified, reverse elements are available. If the last two components are specified, reverse
iterations over the container can be specified (analogous to what can be done iterations over the container can be specified (analogous to what can be done
over predefined containers that support the Reverse_Iterator interface). over predefined containers that support the ``Reverse_Iterator`` interface).
The following is a typical example of use: The following is a typical example of use:
.. code-block:: ada .. code-block:: ada
......
...@@ -9415,19 +9415,14 @@ that it is separately controllable using pragma @code{Assertion_Policy}. ...@@ -9415,19 +9415,14 @@ that it is separately controllable using pragma @code{Assertion_Policy}.
This aspect provides a light-weight mechanism for loops and quantified This aspect provides a light-weight mechanism for loops and quantified
expressions over container types, without the overhead imposed by the tampering expressions over container types, without the overhead imposed by the tampering
checks of standard Ada 2012 iterators. The value of the aspect is an aggregate checks of standard Ada 2012 iterators. The value of the aspect is an aggregate
with six named components, or which the last three are optional: @code{First}, with six named components, of which the last three are optional: @code{First},
@code{Next}, @code{Has_Element}, @code{Element}, @code{Last}, and @code{Previous}.
@quotation
@code{Next}, @code{Has_Element},`@w{`}Element`@w{`}, @code{Last}, and @code{Previous}.
@end quotation
When only the first three components are specified, only the When only the first three components are specified, only the
@code{for .. in} form of iteration over cursors is available. When @code{Element} @code{for .. in} form of iteration over cursors is available. When @code{Element}
is specified, both this form and the @code{for .. of} form of iteration over is specified, both this form and the @code{for .. of} form of iteration over
elements are available. If the last two components are specified, reverse elements are available. If the last two components are specified, reverse
iterations over the container can be specified (analogous to what can be done iterations over the container can be specified (analogous to what can be done
over predefined containers that support the Reverse_Iterator interface). over predefined containers that support the @code{Reverse_Iterator} interface).
The following is a typical example of use: The following is a typical example of use:
@example @example
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment