Skip to content

Commit 2005c7d

Browse files
committed
minor changes
1 parent 2fe2185 commit 2005c7d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cachematrix.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Matrix inversion is usually a costly computation and their may be some benefit to
22
# caching the inverse of a matrix rather than compute it repeatedly.
33

4-
## Write a short comment describing this function
5-
# 1. Set the value of the matrix
6-
# 2. Get the value of the matrix
7-
# 3. Set the value of inverse of the matrix
8-
# 4. Get the value of inverse of the matrix
4+
# makeCacheMatrix: This function creates a list containing a function for:
5+
# * Set the value of the matrix
6+
# * Get the value of the matrix
7+
# * Set the value of inverse of the matrix
8+
# * Get the value of inverse of the matrix
99
makeCacheMatrix <- function(x = matrix()) {
1010
i <- NULL
1111

@@ -30,7 +30,7 @@ makeCacheMatrix <- function(x = matrix()) {
3030
# [1,] 0 1
3131
# [2,] 1 0
3232

33-
# This function returns the inverse of a matrix. It checks if
33+
# cacheSolve: This function returns the inverse of a matrix. It checks if
3434
# the inverse has been cached before.
3535
cacheSolve <- function(x, ...) {
3636
i <- x$getinverse()

0 commit comments

Comments
 (0)