From 3ce8bd13b2dfe10dc37af089fe1f491689e1e21c Mon Sep 17 00:00:00 2001 From: "Manikandan K. S." Date: Tue, 14 Jul 2026 20:14:46 +0530 Subject: [PATCH] docs: remove redundant RetiresOnSaturation from InSequence example InSequence automatically retires expectations after they are used, so RetiresOnSaturation() in the example is redundant and may mislead readers into thinking it is required. Fixes #4733 --- docs/gmock_for_dummies.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/gmock_for_dummies.md b/docs/gmock_for_dummies.md index ed2297c2..3fbe5aea 100644 --- a/docs/gmock_for_dummies.md +++ b/docs/gmock_for_dummies.md @@ -679,8 +679,7 @@ using ::testing::Return; for (int i = 1; i <= n; i++) { EXPECT_CALL(turtle, GetX()) - .WillOnce(Return(10*i)) - .RetiresOnSaturation(); + .WillOnce(Return(10*i)); } } ```