Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tools/doc/stability.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
Lxxyx and aduh95 authored Jan 19, 2021
commit 8c573d10c63d7d5ea511a212444cd62eced3faa1
2 changes: 1 addition & 1 deletion tools/doc/stability.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function updateStabilityMark(file, value, mark) {
const offset = fs.writeSync(fd, value, index, 'utf-8');

// Re-write the end of the file after `value`.
fs.writeSync(fd, content, index + mark.length);
fs.writeSync(fd, content, index + mark.length, undefined, index + offset);
fs.closeSync(fd);
}

Expand Down