Skip to content

Commit ac187f1

Browse files
author
Beres Botond
committed
Fixed a bug and finished comments
1 parent 933a6d3 commit ac187f1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cachematrix.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
## Put comments here that give an overall description of what your
2-
## functions do
1+
# The functions below provide a way to cache matrix inversions
32

43
# This function creates a special matrix which is really
54
# a list containing a function to
@@ -27,7 +26,7 @@ makeCacheMatrix <- function(x = matrix()) {
2726
# the computation if it finds one.
2827
cacheSolve <- function(x, ...) {
2928
## Return a matrix that is the inverse of 'x'
30-
inv <= x$getinverse()
29+
inv <- x$getinverse()
3130
if(!is.null(inv)) {
3231
message("getting cached data!")
3332
return(inv)

0 commit comments

Comments
 (0)