diff --git a/Sources/TableCellAction.swift b/Sources/TableCellAction.swift index 8c81bef..5f12ca8 100644 --- a/Sources/TableCellAction.swift +++ b/Sources/TableCellAction.swift @@ -26,7 +26,7 @@ struct TableKitNotifications { /** A custom action that you can trigger from your cell. - You can eacily catch actions using a chaining manner with your row builder. + You can easily catch actions using a chaining manner with your row. */ public class TableCellAction { diff --git a/Sources/TableSection.swift b/Sources/TableSection.swift index 02ff134..904bfbd 100644 --- a/Sources/TableSection.swift +++ b/Sources/TableSection.swift @@ -84,13 +84,8 @@ public class TableSection { self.rows.insertContentsOf(rows, at: index) } - public func replace(rowAt index: Int, with row: Row) -> Bool { - - if index >= 0 && index < rows.count { - rows[index] = row - return true - } - return false + public func replace(rowAt index: Int, with row: Row) { + rows[index] = row } public func delete(index index: Int) {