Skip to content

Commit edeb1cb

Browse files
RexJaeschkejskeet
authored andcommitted
Update lexical-structure.md
1 parent aebb6f0 commit edeb1cb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

standard/lexical-structure.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ To permit the smallest possible `int` and `long` values to be written as integer
716716
- When an *Integer_Literal* representing the value `9223372036854775808` (2⁶³) and no *Integer_Type_Suffix* or the *Integer_Type_Suffix* `L` or `l` appears as the token immediately following a unary minus operator token ([§11.8.3](expressions.md#1183-unary-minus-operator)), the result (of both tokens) is a constant of type `long` with the value `−9223372036854775808` (−2⁶³). In all other situations, such an *Integer_Literal* is of type `ulong`.
717717

718718
> *Example*:
719-
>
719+
>
720720
> ```csharp
721721
> 123 // decimal, int
722722
> 10_543_765Lu // decimal, ulong
@@ -733,7 +733,7 @@ To permit the smallest possible `int` and `long` values to be written as integer
733733
> 0b1111_1111_0000UL // binary, ulong
734734
> 0B__111 // binary, int
735735
> ```
736-
>
736+
>
737737
> *end example*
738738
739739
#### 6.4.5.4 Real literals
@@ -779,9 +779,9 @@ If the magnitude of the specified literal is too large to be represented in the
779779
The value of a real literal of type `float` or `double` is determined by using the IEC 60559 “round to nearest” mode with ties broken to “even” (a value with the least-significant-bit zero), and all digits considered significant.
780780

781781
> *Note*: In a real literal, decimal digits are always required after the decimal point. For example, `1.3F` is a real literal but `1.F` is not. *end note*
782-
782+
>
783783
> *Example*:
784-
>
784+
>
785785
> ```csharp
786786
> 1.234_567 // double
787787
> .3e5f // float
@@ -792,7 +792,7 @@ The value of a real literal of type `float` or `double` is determined by using t
792792
> 1.234_ // invalid; no trailing _ allowed in fraction
793793
> .3e5_F // invalid; no trailing _ allowed in exponent
794794
> ```
795-
>
795+
>
796796
> *end example*
797797
798798
#### 6.4.5.5 Character literals

0 commit comments

Comments
 (0)