diff --git a/README.md b/README.md index c5ab9cb..b87ccb7 100644 --- a/README.md +++ b/README.md @@ -2060,7 +2060,7 @@ from threading import Thread, RLock, Semaphore, Event, Barrier ### Lock ```python - = RLock() + = RLock() # Lock that can only be released by the owner. .acquire() # Waits for lock to be available. .release() # Makes the lock available again. ``` diff --git a/index.html b/index.html index 3686d2f..1d03b85 100644 --- a/index.html +++ b/index.html @@ -1832,7 +1832,7 @@ CompletedProcess(args=['bc', 'kwargs=<dict>' to pass keyword arguments to the function.
  • Use 'daemon=True', or the program will not be able to exit while the thread is alive.
  • -

    Lock

    <lock> = RLock()
    +

    Lock

    <lock> = RLock()                      # Lock that can only be released by the owner.
     <lock>.acquire()                      # Waits for lock to be available.
     <lock>.release()                      # Makes the lock available again.