Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Document line for AssignableToTypeOf is wrong #453

@ethervoid

Description

@ethervoid

Actual behavior A clear and concise description of what the bug is.

The current example is misleading and doesn't work if you try to use it:

//   var ctx = reflect.TypeOf((*context.Context)).Elem()
//   AssignableToTypeOf(ctx).Matches(context.Background()) // returns true

Expected behavior A clear and concise description of what you expected to
happen.

The example should work

To Reproduce Steps to reproduce the behavior

  1. ... Just try to use the current example in your code
  2. ...

Additional Information

  • gomock mode (reflect or source):
  • gomock version or git ref:
  • golang version:

Triage Notes for the Maintainers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions