diff --git a/README.md b/README.md index 26d509a..69be0dd 100644 --- a/README.md +++ b/README.md @@ -2062,7 +2062,7 @@ from threading import Thread, RLock, Semaphore, Event, Barrier ```python = RLock() # Lock that can only be released by the owner. .acquire() # Waits for lock to be available. -.release() # Makes the lock available again. +.release() # Makes lock available again. ``` #### Or: @@ -2931,8 +2931,8 @@ while all(event.type != pg.QUIT for event in pg.event.get()): ### Rectangle **Object for storing rectangular coordinates.** ```python - = pg.Rect(x, y, width, height) # X and y are coordinates of topleft corner. - = .x/y/centerx/centery/… # Top, right, bottom, left. + = pg.Rect(x, y, width, height) # Floats get truncated into ints. + = .x/y/centerx/centery/… # Top, right, bottom, left. Allows assignments. = .topleft/center/… # Topright, bottomright, bottomleft. = .move((x, y)) # Use move_ip() to move in place. ``` diff --git a/index.html b/index.html index d9263e3..cacd956 100644 --- a/index.html +++ b/index.html @@ -1847,7 +1847,7 @@ CompletedProcess(args=['bc', 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.
+<lock>.release()                      # Makes lock available again.
 

Or:

lock = RLock()
@@ -2520,8 +2520,8 @@ rect = pg.Rect(240, 2
 
-

Rectangle

Object for storing rectangular coordinates.

<Rect> = pg.Rect(x, y, width, height)           # X and y are coordinates of topleft corner.
-<int>  = <Rect>.x/y/centerx/centery/…           # Top, right, bottom, left.
+

Rectangle

Object for storing rectangular coordinates.

<Rect> = pg.Rect(x, y, width, height)           # Floats get truncated into ints.
+<int>  = <Rect>.x/y/centerx/centery/…           # Top, right, bottom, left. Allows assignments.
 <tup.> = <Rect>.topleft/center/…                # Topright, bottomright, bottomleft.
 <Rect> = <Rect>.move((x, y))                    # Use move_ip() to move in place.