aboutsummaryrefslogtreecommitdiff
path: root/pam/pam.go
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2021-12-21 23:29:41 -0600
committerGitHub <noreply@github.com>2021-12-21 23:29:41 -0600
commit0c2b4e68cb5a1ae11e4132261712fc985b94b965 (patch)
treea0f40777f7cab3d83dc8c0b601f93098a0e32982 /pam/pam.go
parentaa7e4237024f5cf6bb2817ef997dbc18197b30a6 (diff)
parentee7bd64191beb715f883a7c91f0de0779b849af4 (diff)
Merge pull request #335 from google/fix-typos
Fix a few typos
Diffstat (limited to 'pam/pam.go')
-rw-r--r--pam/pam.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pam/pam.go b/pam/pam.go
index f79e2d4..dab4a55 100644
--- a/pam/pam.go
+++ b/pam/pam.go
@@ -79,7 +79,7 @@ func (h *Handle) getData(name string) (unsafe.Pointer, error) {
return data, h.err()
}
-// ClearData remotes the PAM data with the specified name.
+// ClearData removes the PAM data with the specified name.
func (h *Handle) ClearData(name string) error {
return h.setData(name, unsafe.Pointer(C.CString("")), C.CleanupFunc(C.freeData))
}
@@ -92,8 +92,8 @@ func (h *Handle) SetSecret(name string, secret unsafe.Pointer) error {
}
// GetSecret returns a pointer to the C string PAM data with the specified name.
-// This a pointer directory to the data, so it shouldn't be modified. It should
-// have been previously set with SetSecret().
+// This is a pointer directly to the data, so it shouldn't be modified. It
+// should have been previously set with SetSecret().
func (h *Handle) GetSecret(name string) (unsafe.Pointer, error) {
return h.getData(name)
}
@@ -174,7 +174,7 @@ func (h *Handle) InfoMessage(message string) {
}
// Transaction represents a wrapped pam_handle_t type created with pam_start
-// form an application.
+// from an application.
type Transaction Handle
// Start initializes a pam Transaction. End() should be called after the