Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Aug 4, 2019
1 parent 9f00a27 commit d2c2376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logic/apis/disk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ table.insert(computer.apis,{
prototype = {
-- Public methods
readFile = {
"disk.readFile(filepath) - Writes the value of each of its arguments to the file.",
"disk.readFile(filepath) - Returns the contents of the file specified by the argument.",
function(self, filepath)
return self.__readFile(filepath)
end
Expand All @@ -29,7 +29,7 @@ table.insert(computer.apis,{
end
},
removeFile = {
"disk.removeFile(filepath) - Append the value of each of its arguments to the file.",
"disk.removeFile(filepath) - Removes the file specified by the argument if it exists.",
function(self, filepath)
if self.__fileExist(filepath) then
self.__removeFile(filepath)
Expand Down

0 comments on commit d2c2376

Please sign in to comment.