Skip to content

Commit d9c2fc3

Browse files
author
Jonas Friedemann Grote
committed
Fix resetting cached data if the original matrix is changed...
1 parent 831aec8 commit d9c2fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cachematrix.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ makeCacheMatrix <- function(x = matrix()) {
44
inverse <- NULL
55
set <- function(y) {
66
x <<- y
7-
m <<- NULL
7+
inverse <<- NULL
88
}
99
get <- function() x
1010
setinverse <- function(inverse) inverse <<- inverse

0 commit comments

Comments
 (0)