Fix markup
This commit is contained in:
parent
9c952d97bf
commit
7cbdcfa301
|
@ -841,10 +841,14 @@ Programming Recommendations
|
||||||
whenever they do something other than acquire and release resources.
|
whenever they do something other than acquire and release resources.
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
Yes: with conn.begin_transaction():
|
Yes::
|
||||||
|
|
||||||
|
with conn.begin_transaction():
|
||||||
do_stuff_in_transaction(conn)
|
do_stuff_in_transaction(conn)
|
||||||
|
|
||||||
No: with conn:
|
No::
|
||||||
|
|
||||||
|
with conn:
|
||||||
do_stuff_in_transaction(conn)
|
do_stuff_in_transaction(conn)
|
||||||
|
|
||||||
The latter example doesn't provide any information to indicate that
|
The latter example doesn't provide any information to indicate that
|
||||||
|
|
Loading…
Reference in New Issue