Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Doc change for setFile (existsSync is necessary) #293

Merged
merged 3 commits into from
Mar 15, 2018

Conversation

CaptainJohnyAppleSeed
Copy link
Contributor

existsSync method is necessary for the object passed into setFile. Should be reflected in comment /issues/258

existsSync method is necessary for the object passed into setFile. Should be reflected in comment atom/issues/258
@@ -576,6 +576,7 @@ class TextBuffer
# * `getPath` A {Function} that returns the {String} path to the file.
# * `createReadStream` A {Function} that returns a `Readable` stream
# that can be used to load the file's content.
# * `existsSync` A {function} that returns the {Boolean}, true if the file exists, false otherwise
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be moved below createWriteStream so it doesn't split the two create___Stream properties up?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, thanks! I've reordered them, such that they write streams are together.

Copy link
Contributor

@Arcanemagus Arcanemagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, missed this earlier!

@@ -578,6 +578,7 @@ class TextBuffer
# that can be used to load the file's content.
# * `createWriteStream` A {Function} that returns a `Writable` stream
# that can be used to save content to the file.
# * `existsSync` A {function} that returns the {Boolean}, true if the file exists, false otherwise
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, caught these on a last check:

  • {function} should be {Function}
  • Add a . on the end
  • returns the {Boolean} -> returns a {Boolean}

@CaptainJohnyAppleSeed
Copy link
Contributor Author

Great catches again, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants