Outdated comment for bson.NewObjectId
Bug #1253920 reported by
Dmitry Chestnykh
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mgo |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This doc-comment is no longer true, since readMachineId is called when initializing module:
// This function causes a runtime error if it fails to get the hostname
// of the current machine.
http://
Also, in another comment readMachineId is called initMachineId:
// initMachineId generates machine id and puts it into the machineId global
// variable. If this function fails to get the hostname, it will cause
// a runtime error.
func readMachineId() []byte {
http://
To post a comment you must log in.
Another, unrelated, mistake in comment: bazaar. launchpad. net/+branch/ mgo/v2/ view/head: /gridfs. go#L378
http://
(Stray "It is a runtime")