]> Cypherpunks repositories - gostls13.git/commit
doc: add illegal octal over 255 example
authorZach Collier <zamicol@gmail.com>
Fri, 1 Apr 2022 23:42:12 +0000 (23:42 +0000)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Sat, 2 Apr 2022 17:45:45 +0000 (17:45 +0000)
commit01c83be7932e7f51333c813460752f09f78ec2c4
treedef4116047f3ba72bc13dff0c2452c7ad0ea7b96
parent8a816d5efcc842ae92f0193aa9c1d433bd66ef31
doc: add illegal octal over 255 example

Octal values over 255, like \400 or \777, are illegal.  It wasn't clear if the expected behavior was a compile error, encoding the value as two characters, or if the value would be capped at 255.

This example explicitly shows that octal values over 255 are illegal.

Change-Id: I45d94680107029c5f083e5d434e6270cc5b258c1
GitHub-Last-Rev: f6bef0379f547ca6204c837279d67ad87c2b69c7
GitHub-Pull-Request: golang/go#52111
Reviewed-on: https://go-review.googlesource.com/c/go/+/397555
Reviewed-by: Robert Griesemer <gri@golang.org>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
doc/go_spec.html