Skip to content

mock: Mock.Return does not exist anymore#1905

Merged
brackendawson merged 1 commit into
stretchr:masterfrom
Kentzo:patch-1
Jun 10, 2026
Merged

mock: Mock.Return does not exist anymore#1905
brackendawson merged 1 commit into
stretchr:masterfrom
Kentzo:patch-1

Conversation

@Kentzo

@Kentzo Kentzo commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Remove mentions of removed function the docs and comment.

Changes

Removed references to the Return

Motivation

I'm a new user and was getting familiar with the API. Noticed that docs for some of the Mock functions mentioned the Return function which didn't exist.

Remove mentions of removed function the docs and comment.

@brackendawson brackendawson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mock.Return never existed, it has always been Call.Return. Probably the original comment intended to say On().Return().

This is a good improvement and renders fine in pkgsite.

@brackendawson brackendawson merged commit 001eb79 into stretchr:master Jun 10, 2026
11 checks passed
@Kentzo

Kentzo commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

Mock.Return never existed

It did in the initial commit :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants