From 05ad7e80208aee3956e630be10f1685b0bbea5b1 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Tue, 25 Aug 2020 13:48:17 +0100 Subject: [PATCH] Fix typo in warning emitted from Sphinx.add_lexer() --- sphinx/application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/application.py b/sphinx/application.py index d84a2c975..385b74d8a 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -1004,7 +1004,7 @@ class Sphinx: logger.debug('[app] adding lexer: %r', (alias, lexer)) if isinstance(lexer, Lexer): warnings.warn('app.add_lexer() API changed; ' - 'Please give lexer class instead instance', + 'Please give lexer class instead of instance', RemovedInSphinx40Warning, stacklevel=2) lexers[alias] = lexer else: