@@ -24,7 +24,7 @@ import (
24
24
// inappropriate to the kind of type causes a run time panic.
25
25
//
26
26
// The zero Value represents no value.
27
- // Its IsValid method returns false, its Kind method returns Invalid,
27
+ // Its [Value. IsValid] method returns false, its Kind method returns [ Invalid] ,
28
28
// its String method returns "<invalid Value>", and all other methods panic.
29
29
// Most functions and methods never return an invalid value.
30
30
// If one does, its documentation states the conditions explicitly.
@@ -1541,7 +1541,7 @@ func (v Value) InterfaceData() [2]uintptr {
1541
1541
// a chan, func, interface, map, pointer, or slice value; if it is
1542
1542
// not, IsNil panics. Note that IsNil is not always equivalent to a
1543
1543
// regular comparison with nil in Go. For example, if v was created
1544
- // by calling ValueOf with an uninitialized interface variable i,
1544
+ // by calling [ ValueOf] with an uninitialized interface variable i,
1545
1545
// i==nil will be true but v.IsNil will panic as v will be the zero
1546
1546
// Value.
1547
1547
func (v Value ) IsNil () bool {
@@ -1566,7 +1566,7 @@ func (v Value) IsNil() bool {
1566
1566
1567
1567
// IsValid reports whether v represents a value.
1568
1568
// It returns false if v is the zero Value.
1569
- // If IsValid returns false, all other methods except String panic.
1569
+ // If [Value. IsValid] returns false, all other methods except String panic.
1570
1570
// Most functions and methods never return an invalid Value.
1571
1571
// If one does, its documentation states the conditions explicitly.
1572
1572
func (v Value ) IsValid () bool {
@@ -2503,7 +2503,7 @@ func (v Value) SetUint(x uint64) {
2503
2503
}
2504
2504
2505
2505
// SetPointer sets the [unsafe.Pointer] value v to x.
2506
- // It panics if v's Kind is not UnsafePointer.
2506
+ // It panics if v's Kind is not [ UnsafePointer] .
2507
2507
func (v Value ) SetPointer (x unsafe.Pointer ) {
2508
2508
v .mustBeAssignable ()
2509
2509
v .mustBe (UnsafePointer )
@@ -3054,7 +3054,7 @@ const (
3054
3054
// then the case is ignored, and the field Send will also be ignored and may be either zero
3055
3055
// or non-zero.
3056
3056
//
3057
- // If Dir is SelectRecv, the case represents a receive operation.
3057
+ // If Dir is [ SelectRecv] , the case represents a receive operation.
3058
3058
// Normally Chan's underlying value must be a channel and Send must be a zero Value.
3059
3059
// If Chan is a zero Value, then the case is ignored, but Send must still be a zero Value.
3060
3060
// When a receive operation is selected, the received Value is returned by Select.
@@ -3281,7 +3281,7 @@ func Zero(typ Type) Value {
3281
3281
var zeroVal [abi .ZeroValSize ]byte
3282
3282
3283
3283
// New returns a Value representing a pointer to a new zero value
3284
- // for the specified type. That is, the returned Value's Type is PointerTo(typ).
3284
+ // for the specified type. That is, the returned Value's Type is [ PointerTo] (typ).
3285
3285
func New (typ Type ) Value {
3286
3286
if typ == nil {
3287
3287
panic ("reflect: New(nil)" )
0 commit comments