Lower case "console" in import makes example fail

This commit is contained in:
Neil Stoker 2020-06-06 01:52:25 +01:00 committed by GitHub
parent 6d2135c9b7
commit 171021f2c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ Rich can syntax highlight various programming languages with line numbers.
To syntax highlight code, construct a :class:`~rich.syntax.Syntax` object and print it to the console. Here's an example::
from rich.console import console
from rich.console import Console
from rich.syntax import Syntax
console = Console()
@ -22,4 +22,4 @@ You can use this class from the command line. Here's how you would syntax highli
For the full list of arguments, run the following::
python -m rich.syntax -h