Explorar o código

Nit correction

Yash Tibrewal %!s(int64=8) %!d(string=hai) anos
pai
achega
a74ea8602d
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/core/ext/filters/client_channel/http_proxy.c

+ 3 - 3
src/core/ext/filters/client_channel/http_proxy.c

@@ -36,8 +36,8 @@
 
 
 /**
 /**
  * Parses the 'http_proxy' env var and returns the proxy hostname to resolve or
  * Parses the 'http_proxy' env var and returns the proxy hostname to resolve or
- * NULL on error. Also sets 'user_cred' if it is not NULL to user credentials
- * if present in the 'http_proxy' env var.
+ * NULL on error. Also sets 'user_cred' to user credentials present in the
+ * 'http_proxy' env var, NULL if not present.
  */
  */
 static char *grpc_get_http_proxy_server(grpc_exec_ctx* exec_ctx,
 static char *grpc_get_http_proxy_server(grpc_exec_ctx* exec_ctx,
                                 char **user_cred) {
                                 char **user_cred) {
@@ -61,7 +61,7 @@ static char *grpc_get_http_proxy_server(grpc_exec_ctx* exec_ctx,
   char **authority_strs = NULL;
   char **authority_strs = NULL;
   size_t authority_nstrs;
   size_t authority_nstrs;
   gpr_string_split(uri->authority, "@", &authority_strs, &authority_nstrs);
   gpr_string_split(uri->authority, "@", &authority_strs, &authority_nstrs);
-  GPR_ASSERT(authority_nstrs != 0); /* should have atleast 1 string */
+  GPR_ASSERT(authority_nstrs != 0); /* should have at least 1 string */
   if(authority_nstrs == 1) {
   if(authority_nstrs == 1) {
   /* User cred not present in authority */
   /* User cred not present in authority */
     proxy_name = gpr_strdup(authority_strs[0]);
     proxy_name = gpr_strdup(authority_strs[0]);