Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz834 committed Feb 11, 2025
1 parent eb46a00 commit e452d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reflect/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ func TypeAssert[T any](v Value) (T, bool) {
if abi.TypeFor[T]() != v.typ() {
// TypeAssert[T] should work the same way as v.Interface().(T), thus we need
// to handle following case properly: TypeAssert[any](ValueOf(1)).
// Note that we will not hit here is such case: TypeAssert[any](ValueOf(any(1))).
// Note that we will not hit here is such case: TypeAssert[any](ValueOf(new(any)).Elem()).
if abi.TypeFor[T]().Kind() == abi.Interface {
v, ok := packEface(v).(T)
return v, ok
Expand Down

0 comments on commit e452d77

Please sign in to comment.