Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 989dba7

Browse files
committed
minor comments changes
1 parent bc0384a commit 989dba7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cachematrix.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,20 @@
2929
##
3030
##
3131
##
32+
##
33+
##
3234
## a function wich recieves a matrix and return a list
3335
## with followin functions:
3436
## get() - returns the original matrix
35-
## set() - set the matrix
37+
## set(m) - set the matrix, inverse matrix to NULL
3638
## setinverse(m) - sets the inversed matrix
3739
## getinverse() - return the inversed matrix or NULL
3840
makeCacheMatrix <- function(x = matrix()) {
3941

4042
inverseMatrix <- NULL
4143

42-
set <- function(y) {
43-
x <<- y
44+
set <- function(pMatrix) {
45+
x <<- pMatrix
4446
inverseMatrix <<- NULL
4547
}
4648

0 commit comments

Comments
 (0)