doc: fix filehandle.truncate sample codes by shisama · Pull Request #20913 · nodejs/node

@nodejs-github-bot added doc

Issues and PRs related to the documentations.

fs

Issues and PRs related to the fs subsystem / file system.

labels

May 23, 2018

jasnell

Fix sample codes because `filehandle.close` was not called when error
occured. `filehandle.close` should be called manually.

benjamingr

vsemozhetbyt

vsemozhetbyt

shisama added 2 commits

May 24, 2018 13:35
Fix sample codes for filehandle.truncate to make them more clearly.

vsemozhetbyt

@vsemozhetbyt vsemozhetbyt added the author ready

PRs that have at least one approval, no pending requests for changes, and a CI started.

label

May 24, 2018

BridgeAR

vsemozhetbyt pushed a commit that referenced this pull request

May 24, 2018
PR-URL: #20913
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>

targos pushed a commit that referenced this pull request

May 25, 2018
PR-URL: #20913
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Open