Revert "More typos"

This reverts commit 7f657dd22ac20d22698c53b23f0057e1a12c09b7.
Revert "Revert "More typos""

This reverts commit ebd1f7fdb46989ec9c9b842f89045f3a92b6745f.
makeCacheMatrix <- function(m=matrix()){

  inv <- NULL
  set <- function(x){
    m <<- x
    inv <<- NULL
  }

  get <- function() m
  setinverse <- function(inverse) inv <<- inverse
  getinverse <- function() inv

  list(get=get, set=set, getinverse=getinverse, setinverse=setinverse)
}

cacheSolve <- function(m){
  inv <- m$getinverse()

  if(!is.null(inv)){
    message("getting cached data")
    return (inv)
  }

  ma <- m$get()
  inv <- solve(ma)
  m$setinverse(inv)
  inv
}