[GODRIVER-2777] Incorrect comments of Cursor.Next() function Created: 16/Mar/23  Updated: 28/Oct/23  Resolved: 23/Mar/23

Status: Closed
Project: Go Driver
Component/s: Docs, Documentation
Affects Version/s: 1.10.6
Fix Version/s: 1.12.0

Type: Improvement Priority: Trivial - P5
Reporter: Mantas Šilanskas Assignee: Preston Vasquez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

After doing research I believe that comment of Cursor.Next() function has typo.

 

Comment in mind: If ctx expires, the error will be set to ctx.Err().

 

Correct comment: If ctx expires, the error will be set to cursor.Err().



 Comments   
Comment by Mantas Šilanskas [ 16/Mar/23 ]

Pull request: https://github.com/mongodb/mongo-go-driver/pull/1204

Generated at Thu Feb 08 08:39:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.