mirror of
https://github.com/golang/go
synced 2024-11-23 17:10:03 -07:00
A selection of trivials.
R=golang-dev, gri CC=golang-dev https://golang.org/cl/3606043
This commit is contained in:
parent
5e54e93675
commit
1f6b6ca9ba
@ -104,12 +104,12 @@
|
||||
<th align="left">Synopsis</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align="left"><a href="..">..<a></th>
|
||||
<th align="left"><a href="..">..</a></th>
|
||||
</tr>
|
||||
{.repeated section List}
|
||||
<tr>
|
||||
{Depth|padding}
|
||||
<td align="left" colspan="{Height|html-esc}"><a href="{Path|html-esc}">{Name|html-esc}<a></td>
|
||||
<td align="left" colspan="{Height|html-esc}"><a href="{Path|html-esc}">{Name|html-esc}</a></td>
|
||||
<td></td>
|
||||
<td align="left">{Synopsis|html-esc}</td>
|
||||
</tr>
|
||||
|
@ -7,8 +7,8 @@
|
||||
/*
|
||||
* machine size and rounding
|
||||
* alignment is dictated around
|
||||
* the size of a pointer, set in belexinit
|
||||
* (see ../6g/align.c).
|
||||
* the size of a pointer, set in betypeinit
|
||||
* (see ../6g/galign.c).
|
||||
*/
|
||||
|
||||
static int defercalc;
|
||||
|
@ -127,7 +127,7 @@ func (doc *docReader) addValue(decl *ast.GenDecl) {
|
||||
name := ""
|
||||
switch {
|
||||
case v.Type != nil:
|
||||
// a type is present; determine it's name
|
||||
// a type is present; determine its name
|
||||
name = baseTypeName(v.Type)
|
||||
case decl.Tok == token.CONST:
|
||||
// no type is present but we have a constant declaration;
|
||||
|
Loading…
Reference in New Issue
Block a user