Skip to content

Commit

Permalink
Merge pull request #28 from davidbrochart/readme
Browse files Browse the repository at this point in the history
Add syntax highlighting
  • Loading branch information
oremanj committed Feb 14, 2024
2 parents d0e52cd + 9bbf7c4 commit db93672
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Example

Suppose you start with this async-unaware program::

.. code-block:: python
import subprocess
def main():
Expand All @@ -118,6 +120,8 @@ Suppose you start with this async-unaware program::
Using ``greenback``, you can change it to run in a Trio event loop by
changing only the top and bottom layers, with no change to ``print_fact()``. ::

.. code-block:: python
import trio
import greenback
Expand Down

0 comments on commit db93672

Please sign in to comment.