diff --git a/README.md b/README.md index 3a724c7..642248f 100644 --- a/README.md +++ b/README.md @@ -1914,7 +1914,7 @@ Bytes = bytes() # Ints must be in range from 0 to 255. = bytes(, 'utf-8') # Or: .encode('utf-8') = .to_bytes(n_bytes, …) # `byteorder='big/little', signed=False`. - = bytes.fromhex('') # Hex numbers can be separated by spaces. + = bytes.fromhex('') # Hex pairs can be separated by spaces. ``` ### Decode @@ -1922,7 +1922,7 @@ Bytes = list() # Returns ints in range from 0 to 255. = str(, 'utf-8') # Or: .decode('utf-8') = int.from_bytes(, …) # `byteorder='big/little', signed=False`. -'' = .hex() # Returns a string of hexadecimal numbers. +'' = .hex() # Returns a string of hexadecimal pairs. ``` ### Read Bytes from File diff --git a/index.html b/index.html index d6b1911..f10667c 100644 --- a/index.html +++ b/index.html @@ -1715,13 +1715,13 @@ CompletedProcess(args=['bc', Encode
<bytes> = bytes(<coll_of_ints>)          # Ints must be in range from 0 to 255.
 <bytes> = bytes(<str>, 'utf-8')          # Or: <str>.encode('utf-8')
 <bytes> = <int>.to_bytes(n_bytes, …)     # `byteorder='big/little', signed=False`.
-<bytes> = bytes.fromhex('<hex>')         # Hex numbers can be separated by spaces.
+<bytes> = bytes.fromhex('<hex>')         # Hex pairs can be separated by spaces.
 

Decode

<list>  = list(<bytes>)                  # Returns ints in range from 0 to 255.
 <str>   = str(<bytes>, 'utf-8')          # Or: <bytes>.decode('utf-8')
 <int>   = int.from_bytes(<bytes>, …)     # `byteorder='big/little', signed=False`.
-'<hex>' = <bytes>.hex()                  # Returns a string of hexadecimal numbers.
+'<hex>' = <bytes>.hex()                  # Returns a string of hexadecimal pairs.
 

Read Bytes from File

def read_bytes(filename):