From 92f3e6e4e30b853af304aa53f529af2c262419f1 Mon Sep 17 00:00:00 2001
From: Matthew Pickering <matthewtpickering@gmail.com>
Date: Tue, 11 Jan 2022 10:35:50 +0000
Subject: [PATCH] docs: MonadComprehension desugar using Alternative rather
 than MonadPlus

Fixes #20928
---
 docs/users_guide/exts/monad_comprehensions.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/users_guide/exts/monad_comprehensions.rst b/docs/users_guide/exts/monad_comprehensions.rst
index 4ed99b1002c5..b4afbc1090e7 100644
--- a/docs/users_guide/exts/monad_comprehensions.rst
+++ b/docs/users_guide/exts/monad_comprehensions.rst
@@ -35,8 +35,8 @@ Monad comprehensions support:
 
        [ x | x <- [1..10], x <= 5 ]
 
-   Guards are translated with the ``guard`` function, which requires a
-   ``MonadPlus`` instance: ::
+   Guards are translated with the ``guard`` function, which requires an
+   ``Alternative`` instance: ::
 
        do x <- [1..10]
           guard (x <= 5)
-- 
GitLab