Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Invalid JavaScript in the example #33

Open
vitaly-t opened this issue Oct 16, 2017 · 0 comments
Open

Invalid JavaScript in the example #33

vitaly-t opened this issue Oct 16, 2017 · 0 comments

Comments

@vitaly-t
Copy link

vitaly-t commented Oct 16, 2017

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.

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

No branches or pull requests

1 participant