--- a/plugins/supported/text_editor/models/buffer.js
+++ b/plugins/supported/text_editor/models/buffer.js
@@ -137,18 +137,17 @@ exports.Buffer.prototype = {
save: function() {
return this._file.saveContents(this._model.value);
},
/**
* Saves the contents of this buffer to a new file, and updates the file
* field of this buffer to point to the result.
*
- * @param dir{Directory} The directory to save in.
- * @param filename{string} The name of the file in the directory.
+ * @param {File} newFile The pathname to save to, as a File object.
* @return A promise to return the newly-saved file.
*/
saveAs: function(newFile) {
var promise = new Promise();
newFile.saveContents(this._model.value).then(function() {
this._file = newFile;
this._updateSyntaxManagerInitialContext();