mirror of
https://github.com/gechandesu/pwd.git
synced 2026-02-13 04:21:50 +03:00
fix docs
This commit is contained in:
4
pwd.c.v
4
pwd.c.v
@@ -41,7 +41,7 @@ pub struct Passwd {
|
|||||||
pub:
|
pub:
|
||||||
name string // username
|
name string // username
|
||||||
passwd string // user password, usually set to 'x'
|
passwd string // user password, usually set to 'x'
|
||||||
uid int // used ID
|
uid int // user ID
|
||||||
gid int // group ID
|
gid int // group ID
|
||||||
gecos string // user information
|
gecos string // user information
|
||||||
dir string // home directory
|
dir string // home directory
|
||||||
@@ -128,7 +128,7 @@ pub struct EntryNotFoundError {
|
|||||||
uid int
|
uid int
|
||||||
}
|
}
|
||||||
|
|
||||||
// msg returns the string representation of EntryNotFoundError error.
|
// msg returns the EntryNotFoundError error message.
|
||||||
pub fn (e EntryNotFoundError) msg() string {
|
pub fn (e EntryNotFoundError) msg() string {
|
||||||
if e.name != '' {
|
if e.name != '' {
|
||||||
return "no passwd entry found by username '${e.name}'"
|
return "no passwd entry found by username '${e.name}'"
|
||||||
|
|||||||
Reference in New Issue
Block a user