1
0
mirror of https://github.com/google/uuid.git synced 2025-07-05 00:58:42 +02:00

A little error in the documentation of dce.go

I think that could be an error in the documentation of [NewDCEGroup](281f560d28/dce.go (L53)) and [NewDCEPerson](281f560d28/dce.go (L45))
This commit is contained in:
Javier Escalada
2017-08-12 17:57:52 +01:00
committed by GitHub
parent 281f560d28
commit 3e2a039c14

4
dce.go
View File

@ -42,7 +42,7 @@ func NewDCESecurity(domain Domain, id uint32) (UUID, error) {
// NewDCEPerson returns a DCE Security (Version 2) UUID in the person // NewDCEPerson returns a DCE Security (Version 2) UUID in the person
// domain with the id returned by os.Getuid. // domain with the id returned by os.Getuid.
// //
// NewDCEPerson(Person, uint32(os.Getuid())) // NewDCESecurity(Person, uint32(os.Getuid()))
func NewDCEPerson() (UUID, error) { func NewDCEPerson() (UUID, error) {
return NewDCESecurity(Person, uint32(os.Getuid())) return NewDCESecurity(Person, uint32(os.Getuid()))
} }
@ -50,7 +50,7 @@ func NewDCEPerson() (UUID, error) {
// NewDCEGroup returns a DCE Security (Version 2) UUID in the group // NewDCEGroup returns a DCE Security (Version 2) UUID in the group
// domain with the id returned by os.Getgid. // domain with the id returned by os.Getgid.
// //
// NewDCEGroup(Group, uint32(os.Getgid())) // NewDCESecurity(Group, uint32(os.Getgid()))
func NewDCEGroup() (UUID, error) { func NewDCEGroup() (UUID, error) {
return NewDCESecurity(Group, uint32(os.Getgid())) return NewDCESecurity(Group, uint32(os.Getgid()))
} }