Skip to content

Commit 31b412d

Browse files
ronan-dtonunaks
authored andcommitted
Fix typos
1 parent 3692b0f commit 31b412d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

features/rfc-import-array-from-address.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ example:
4949
type FLB_Array_Access is access all FLB_Array;
5050
5151
function Create_C_Array_Of_Int (Size : Integer) return System.Address;
52-
pragma Import (C, Create_C_Array, "create_c_array_of_int);
52+
pragma Import (C, Create_C_Array, "create_c_array_of_int");
5353
5454
V1 : Constrained_Array_Access := Constrained_Array_Access'From_Address
5555
(Create_C_Array_Of_Int (10));
@@ -78,7 +78,7 @@ access type instead. To some respect, not presuming the type of the object
7878
and not requiring the creation of an explicit access type, might be better.
7979
However, this requires performing all accessibility checks that don't really
8080
make sense when addressing external memory. It's most likely that these checks
81-
will need to be disabled anyway. Note that if accessibilty checks are required,
81+
will need to be disabled anyway. Note that if accessibility checks are required,
8282
it is still possible to create a local array mapped to an address instead:
8383

8484
```ada

features/rfc-oop-aggregates-and-assignments.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,22 @@ mechanism through a value duplication ('Clone) and post update adjustment
4545
Note that this extra complexity is driven from the desire to support natively
4646
Ada constructs (aggregates, partial copies, etc) and improve compatibility
4747
between classes and tagged types. Users can leverage default implementation if
48-
such level of control is unecessary. Some language extension may also allow
48+
such level of control is unnecessary. Some language extensions may also allow
4949
to forbid aggregates and partial update on specific types (although this
50-
introduces complexities in generics that now need to specify wether these
50+
introduces complexities in generics that now need to specify whether these
5151
restricted types are allowed or not).
5252

5353
Also keep in mind that Ada Flare aggregates also need to account for types that
5454
have both public and private components.
5555

56-
This RFC is about tagged record (and class records even if not explicitely
57-
mentionned). Simple records should also be studied when constructors are made
56+
This RFC is about tagged records (and class records even if not explicitly
57+
mentioned). Simple records should also be studied when constructors are made
5858
available to them.
5959

6060
The additional capabilities need to be optimized as much as possible by the
6161
compiler. In particular - even if it's not a language mandate - the compiler
6262
should replace calls to Clone by binary copies and remove calls to Adjust when
63-
it knows there's no chance of calling an overriden subprogram.
63+
it knows there's no chance of calling an overridden subprogram.
6464

6565
'Clone
6666
------
@@ -95,17 +95,17 @@ Calls to 'Clone are statically resolved when used on definite views, and
9595
dynamically resolved on 'Class wide type. This is arguably a departure from the
9696
"all calls are dispatching" requirement from other aspects of the OOP design,
9797
but is required to allow partial copies of objects which are done today in
98-
various places Ada.
98+
various places in Ada.
9999

100100
The invariant of the target object is not checked after a call to Clone, some
101101
parts may still be inconsistent and fixed later by Adjust.
102102

103103
'Adjust
104104
-------
105105

106-
'Adjust is a overridable attribute called after certain operations. It is
106+
'Adjust is an overridable attribute called after certain operations. It is
107107
different from the legacy Ada Adjust primitive in that it has an argument
108-
refering to the initial value. Note that the From parameter of adjust is
108+
referring to the initial value. Note that the From parameter of Adjust is
109109
always typed after the root type of the tagged record hierarchy - indeed, the source
110110
object may be higher up in the derivation chain in the case of partial
111111
copy. This value is provided for reference but is not expected to be

0 commit comments

Comments
 (0)