Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(690)

Unified Diff: src/pkg/reflect/value.go

Issue 223076: code review 223076: gofmt: experiment: align values in map composites where... (Closed)
Patch Set: code review 223076: gofmt: experiment: align values in map composites where... Created 15 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/netchan/export.go ('k') | src/pkg/scanner/scanner.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/reflect/value.go
===================================================================
--- a/src/pkg/reflect/value.go
+++ b/src/pkg/reflect/value.go
@@ -611,8 +611,8 @@
func MakeSlice(typ *SliceType, len, cap int) *SliceValue {
s := &SliceHeader{
Data: uintptr(unsafe.NewArray(typ.Elem(), cap)),
- Len: len,
- Cap: cap,
+ Len: len,
+ Cap: cap,
}
return newValue(typ, addr(s), true).(*SliceValue)
}
« no previous file with comments | « src/pkg/netchan/export.go ('k') | src/pkg/scanner/scanner.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b