[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? |
| 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 |