Jelajahi Sumber

fix typo in README.md

NewAuthenticator returns (Authenticator, error), so 2 values on the left side of the assignment are needed.
Mikhail Ivchenko 8 tahun lalu
induk
melakukan
661013b366
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -125,7 +125,7 @@ This will involve these steps:
 
 * Generate a new Authenticator and generate a sequence number and subkey:
 ```go
-auth := types.NewAuthenticator(cl.Credentials.Realm, cl.Credentials.CName)
+auth, _ := types.NewAuthenticator(cl.Credentials.Realm, cl.Credentials.CName)
 etype, _ := crypto.GetEtype(key.KeyType)
 auth.GenerateSeqNumberAndSubKey(key.KeyType, etype.GetKeyByteSize())
 ```