Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
d7f050a7
Commit
d7f050a7
authored
Dec 09, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: rune is now an alias for int32
R=golang-dev, dsymonds, r CC=golang-dev
https://golang.org/cl/5467048
parent
41453d2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
doc/go_spec.html
doc/go_spec.html
+2
-3
No files found.
doc/go_spec.html
View file @
d7f050a7
...
...
@@ -695,7 +695,7 @@ complex64 the set of all complex numbers with float32 real and imaginary parts
complex128 the set of all complex numbers with float64 real and imaginary parts
byte alias for uint8
rune alias for int
(will change to int32 in the future)
rune alias for int
32
</pre>
<p>
...
...
@@ -716,8 +716,7 @@ uintptr an unsigned integer large enough to store the uninterpreted bits of a p
<p>
To avoid portability issues all numeric types are distinct except
<code>
byte
</code>
, which is an alias for
<code>
uint8
</code>
, and
<code>
rune
</code>
, which is an alias for
<code>
int
</code>
(to become
<code>
int32
</code>
in a later version of Go).
<code>
rune
</code>
, which is an alias for
<code>
int32
</code>
.
Conversions
are required when different numeric types are mixed in an expression
or assignment. For instance,
<code>
int32
</code>
and
<code>
int
</code>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment