diff options
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/api.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/src/api.txt b/docs/src/api.txt index ba581306..7998a7e2 100644 --- a/docs/src/api.txt +++ b/docs/src/api.txt @@ -61,7 +61,7 @@ def `guess_lexer(text, **options):` `pygments.util.ClassNotFound` is raised if no lexer thinks it can handle the content. -def `guess_lexer_for_filename(text, filename, **options):` +def `guess_lexer_for_filename(filename, text, **options):` As `guess_lexer()`, but only lexers which have a pattern in `filenames` or `alias_filenames` that matches `filename` are taken into consideration. |