summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-01-29 12:43:46 +1100
committerRob Pike <r@golang.org>2010-01-29 12:43:46 +1100
commite6201cbac732c7e494b332e00379c6d4653003f5 (patch)
treee3d00d7467f1c69a0b4bf3393b0db25b6218fe23
parentf31de50e666cb24cc723060b7ad612d18f1e6e2f (diff)
downloadgolang-e6201cbac732c7e494b332e00379c6d4653003f5.tar.gz
move comment on StringHeader to fix godoc output.
R=rsc, ken2 CC=golang-dev http://codereview.appspot.com/196055
-rw-r--r--src/pkg/reflect/value.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pkg/reflect/value.go b/src/pkg/reflect/value.go
index 881d44fb2..60f2c0a2c 100644
--- a/src/pkg/reflect/value.go
+++ b/src/pkg/reflect/value.go
@@ -281,12 +281,13 @@ func (v *Int64Value) Set(x int64) {
// Set sets v to the value x.
func (v *Int64Value) SetValue(x Value) { v.Set(x.(*Int64Value).Get()) }
-// StringValue represents a string value.
-// runtime representation of slice
+// StringHeader is the runtime representation of a string.
type StringHeader struct {
Data uintptr
Len int
}
+
+// StringValue represents a string value.
type StringValue struct {
value
}