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:
|
||||
name string // username
|
||||
passwd string // user password, usually set to 'x'
|
||||
uid int // used ID
|
||||
uid int // user ID
|
||||
gid int // group ID
|
||||
gecos string // user information
|
||||
dir string // home directory
|
||||
@@ -128,7 +128,7 @@ pub struct EntryNotFoundError {
|
||||
uid int
|
||||
}
|
||||
|
||||
// msg returns the string representation of EntryNotFoundError error.
|
||||
// msg returns the EntryNotFoundError error message.
|
||||
pub fn (e EntryNotFoundError) msg() string {
|
||||
if e.name != '' {
|
||||
return "no passwd entry found by username '${e.name}'"
|
||||
|
||||
Reference in New Issue
Block a user