Skip to content

Commit e87d8ed

Browse files
chore: fixed typo in Data+Extension.swift
1 parent 17af937 commit e87d8ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Web3Core/Utility/Data+Extension.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public extension Data {
4747
If an error occurs during random bytes generation, the function returns `nil`.
4848
Error occurs only if `SecRandomCopyBytes` returns status that is not `errSecSuccess`.
4949
See [all status codes](https://developer.apple.com/documentation/security/1542001-security_framework_result_codes) for possible error reasons.
50-
Note: in v4 of web3swift this function will be deprecated and a new implementation will be provided that will throw occured error.
50+
Note: in v4 of web3swift this function will be deprecated and a new implementation will be provided that will throw occurred error.
5151
- Parameter length: The number of random bytes to generate.
5252

53-
- Returns: optional `Data` object containing the generated random bytes, or `nil` if an error occured during generation.
53+
- Returns: optional `Data` object containing the generated random bytes, or `nil` if an error occurred during generation.
5454
*/
5555
static func randomBytes(length: Int) -> Data? {
5656
var entropyBytes = [UInt8](repeating: 0, count: length)

0 commit comments

Comments
 (0)