Skip to content

Commit

Permalink
Remove mention of octal literals from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
yole authored Nov 18, 2016
1 parent 340a597 commit 07e62d5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions proposals/underscores-in-numeric-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

* **Type**: Design proposal
* **Author**: Kirill Rakhman
* **Status**: Under consideration
* **Status**: Implemented

## Synopsis

Expand Down Expand Up @@ -63,10 +63,6 @@ val x5 = 0_x52 // Invalid cannot put underscores in the 0x radix pref
val x6 = 0x_52 // Invalid cannot put underscores at the beginning of a number
val x7 = 0x5_2 // OK (hexadecimal literal)
val x8 = 0x52_ // Invalid cannot put underscores at the end of a number

val x9 = 0_52 // OK (octal literal)
val x10 = 05_2 // OK (octal literal)
val x11 = 052_ // Invalid cannot put underscores at the end of a number
```

## Comparison to other languages
Expand Down

0 comments on commit 07e62d5

Please sign in to comment.