Skip to content

Commit 8d8e1e2

Browse files
committed
reflect: clean up unnecessary comments for rtype
1 parent 0784fd1 commit 8d8e1e2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/reflect/type.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,6 @@ type rtype struct {
313313
t abi.Type
314314
}
315315

316-
// OverflowComplex reports whether the complex128 x cannot be represented by type t.
317-
// It panics if t's Kind is not Complex64 or Complex128.
318316
func (t *rtype) OverflowComplex(x complex128) bool {
319317
k := t.Kind()
320318
switch k {
@@ -326,8 +324,6 @@ func (t *rtype) OverflowComplex(x complex128) bool {
326324
panic("reflect: OverflowComplex of non-complex type " + t.String())
327325
}
328326

329-
// OverflowFloat reports whether the float64 x cannot be represented by type t.
330-
// It panics if t's Kind is not Float32 or Float64.
331327
func (t *rtype) OverflowFloat(x float64) bool {
332328
k := t.Kind()
333329
switch k {
@@ -339,8 +335,6 @@ func (t *rtype) OverflowFloat(x float64) bool {
339335
panic("reflect: OverflowFloat of non-float type " + t.String())
340336
}
341337

342-
// OverflowInt reports whether the int64 x cannot be represented by type t.
343-
// It panics if t's Kind is not Int, Int8, Int16, Int32, or Int64.
344338
func (t *rtype) OverflowInt(x int64) bool {
345339
k := t.Kind()
346340
switch k {
@@ -352,8 +346,6 @@ func (t *rtype) OverflowInt(x int64) bool {
352346
panic("reflect: OverflowInt of non-int type " + t.String())
353347
}
354348

355-
// OverflowUint reports whether the uint64 x cannot be represented by type t.
356-
// It panics if t's Kind is not Uint, Uintptr, Uint8, Uint16, Uint32, or Uint64.
357349
func (t *rtype) OverflowUint(x uint64) bool {
358350
k := t.Kind()
359351
switch k {

0 commit comments

Comments
 (0)