Wrap Array in curlies

This commit is contained in:
Kevin Sawicki
2014-01-20 14:54:46 -08:00
parent 5d8ac56018
commit e3f32ab30b

View File

@@ -84,7 +84,7 @@ class Directory
# Public: Reads file entries in this directory from disk synchronously.
#
# Returns an Array of {File} and {Directory} objects.
# Returns an {Array} of {File} and {Directory} objects.
getEntriesSync: ->
directories = []
files = []
@@ -103,7 +103,7 @@ class Directory
# Public: Reads file entries in this directory from disk asynchronously.
#
# * callback: A function to call with an Error as the first argument and
# an Array of {File} and {Directory} objects as the second argument.
# an {Array} of {File} and {Directory} objects as the second argument.
getEntries: (callback) ->
fs.list @path, (error, entries) ->
return callback(error) if error?