Skip to content

Commit 9d6d96c

Browse files
committed
decl: review
intro: moved warning to end identifiers: moved warning literals: rephrase universal: tip -> note named-num: rephrase scope: warning -> note
1 parent cf33362 commit 9d6d96c

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

courses/fundamentals_of_ada/020_declarations/01-introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ Declarations
3636
- et cetera
3737

3838
* In a :dfn:`declarative part`
39+
3940
* Example: :ada:`N : Type := Value;`
4041

4142
- ``N`` is usually an :dfn:`identifier`
4243

43-
.. warning:: Declaration **must precede** use
44-
4544
* **Some** implicit declarations
4645

4746
- **Standard** types and operations
4847
- **Implementation**-defined
4948

49+
.. warning:: Declaration **must precede** use

courses/fundamentals_of_ada/020_declarations/02-identifiers_and_comments.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ Identifiers
3131
A_
3232
_space_person
3333
34+
.. warning:: Reserved words are **forbidden**
35+
3436
* Character set **Unicode** 4.0
3537
* Case **not significant**
3638

3739
- `SpacePerson` |equivalent| `SPACEPERSON`
3840
- ...but **different** from `Space_Person`
3941

40-
.. warning:: Reserved words are **forbidden**
41-
4242
----------------
4343
Reserved Words
4444
----------------

courses/fundamentals_of_ada/020_declarations/03-literals.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Decimal Numeric Literals
3434
numeral [.numeral] E [+numeral|-numeral]
3535
numeral ::= digit {['_'] digit}
3636
37-
.. tip:: Underscore is **not** significant and used for grouping
37+
.. tip:: Underscore is **not** significant and helpful for grouping
3838

3939
* **E** (exponent) must always be integer
4040
* Examples

courses/fundamentals_of_ada/020_declarations/05-universal_types.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Numeric Literals Are Universally Typed
3434

3535
* Compiler handles typing
3636

37-
.. tip:: No bugs with precision
37+
.. note:: No bugs with precision
3838

3939
.. code:: Ada
4040

courses/fundamentals_of_ada/020_declarations/06-named_numbers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Named Number Benefit
5252

5353
- As if **used directly** in the code
5454

55-
.. tip:: They have **perfect** accuracy
55+
.. tip:: Useful due to their **perfect** accuracy
5656

5757
.. code:: Ada
5858

courses/fundamentals_of_ada/020_declarations/07-scope_and_visibility.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Scope and "Lifetime"
6262

6363
* Object in scope |rightarrow| exists
6464

65-
.. warning:: No *scoping* keywords (C's :c:`static`, :c:`auto` etc...)
65+
.. note:: No *scoping* keywords (C's :c:`static`, :c:`auto` etc...)
6666

6767
.. image:: block_scope_example.jpeg
6868
:height: 50%

0 commit comments

Comments
 (0)