diff --git a/examples/README.md b/examples/README.md
index c945faf92755ee1b9e7b50b1bbc48ac47ad13a58..e6bcebaa0cc3bed32a26a654f1e2fd65c08e4754 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -109,7 +109,7 @@ duration of the certificate has passed, approximately.
 ctx, cancel := context.WithCancel(context.Background())
 defer cancel()
 // Get tls.Config for a server
-tlsConfig, err := client.GetClientTLSConfig(ctx, sign, pk)
+tlsConfig, err := client.GetServerTLSConfig(ctx, sign, pk)
 // Get tls.Config for a client
 tlsConfig, err := client.GetClientTLSConfig(ctx, sign, pk)
 // Get an http.Transport for a client, this can be used as a http.RoundTripper