Skip to content

Commit 80f73b9

Browse files
committed
Update cachematrix.R
1 parent 01ff1cb commit 80f73b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cachematrix.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ inv <- NULL
2222
## Write a short comment describing this function
2323
##cacheSolve: This function computes the inverse of the special “matrix” returned by makeCacheMatrix above. If the inverse has already been calculated (and the matrix has not changed), then the cacheSolve should retrieve the inverse from the cache.
2424
cacheSolve <- function(x, ...) {
25-
## Return a matrix that is the inverse of 'x'
26-
inv <- x$getInverse()
25+
inv <- x$getInverse()
2726
if (!is.null(inv)) {
2827
message("getting cached data")
2928
return(inv)

0 commit comments

Comments
 (0)