浏览代码

begining -> beginning (#558)

Semen Zhydenko 7 年之前
父节点
当前提交
46cfb548f8
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Sources/CryptoSwift/AES.Cryptors.swift
  2. 1 1
      Sources/CryptoSwift/ChaCha20.swift

+ 1 - 1
Sources/CryptoSwift/AES.Cryptors.swift

@@ -90,7 +90,7 @@ extension AES {
         }
 
         public mutating func update(withBytes bytes: ArraySlice<UInt8>, isLast: Bool = false) throws -> Array<UInt8> {
-            // prepend "offset" number of bytes at the begining
+            // prepend "offset" number of bytes at the beginning
             if offset > 0 {
                 accumulated += Array<UInt8>(repeating: 0, count: offset) + bytes
                 offsetToRemove = offset

+ 1 - 1
Sources/CryptoSwift/ChaCha20.swift

@@ -293,7 +293,7 @@ extension ChaCha20 {
         }
 
         public mutating func update(withBytes bytes: ArraySlice<UInt8>, isLast: Bool = true) throws -> Array<UInt8> {
-            // prepend "offset" number of bytes at the begining
+            // prepend "offset" number of bytes at the beginning
             if offset > 0 {
                 accumulated += Array<UInt8>(repeating: 0, count: offset) + bytes
                 offsetToRemove = offset