node-pg-cursor icon indicating copy to clipboard operation
node-pg-cursor copied to clipboard

Invalid JavaScript in the example

Open vitaly-t opened this issue 7 years ago • 0 comments

Not sure where/how to PR documentation updates, or whether it is possible at all.

This code below in the documentation:

cursor.read(100, function (err, rows) => {
  cursor.close(() => {
    client.release()
  })
})

is invalid JavaScript for the callback function. You cannot combine function style with => arrow style.

vitaly-t avatar Oct 16 '17 01:10 vitaly-t