Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
Change-Id: I961be6ae172f8f4b82f4d5b84d45d00f1c5ac05d
  • Loading branch information
mateusz834 committed Mar 3, 2025
1 parent d6e3c35 commit cf7322c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/devirtualize/devirtualize.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func concreteType1(s *State, n ir.Node, seen map[*ir.Name]struct{}) (t *types.Ty
}

if _, ok := seen[name]; ok {
// Self assignment, treat is the same as a nil assignment.
// Self assignment, treat it the same as a nil assignment.
// In case this is the only assignment then we are not going to devirtualize anything.
// In case there are other assignment, we still preserve the correct type.
return nil, true
Expand Down

0 comments on commit cf7322c

Please sign in to comment.