]> git.kaiwu.me - nginx.git/commitdiff
Replaced "can not" with "cannot" and "could not" in a bunch of places.
authorRuslan Ermilov <ru@nginx.com>
Mon, 19 Sep 2011 14:48:29 +0000 (14:48 +0000)
committerRuslan Ermilov <ru@nginx.com>
Mon, 19 Sep 2011 14:48:29 +0000 (14:48 +0000)
Fixed nearby grammar errors.

16 files changed:
src/core/ngx_cycle.c
src/core/ngx_palloc.c
src/core/ngx_string.c
src/event/ngx_event.c
src/event/ngx_event_timer.c
src/http/modules/ngx_http_dav_module.c
src/http/modules/ngx_http_headers_filter_module.c
src/http/modules/ngx_http_log_module.c
src/http/ngx_http.c
src/http/ngx_http_core_module.c
src/os/unix/ngx_errno.c
src/os/unix/ngx_file_aio_read.c
src/os/unix/ngx_freebsd_sendfile_chain.c
src/os/unix/ngx_process.c
src/os/unix/ngx_process_cycle.c
src/os/win32/ngx_process_cycle.c

index 968056c42e6eb206b0765749cc910b461de40e75..db473571f6e9a501b1cfedd7dce6830e790a243b 100644 (file)
@@ -739,7 +739,7 @@ old_shm_zone_done:
         ngx_temp_pool = ngx_create_pool(128, cycle->log);
         if (ngx_temp_pool == NULL) {
             ngx_log_error(NGX_LOG_EMERG, cycle->log, 0,
-                          "can not create ngx_temp_pool");
+                          "could not create ngx_temp_pool");
             exit(1);
         }
 
index 35f13119c87a88ea02ac280bc64e9ae77c1aa3fd..9eac114b7c7382440edfcaa2bd53ffd4c9a99da1 100644 (file)
@@ -68,7 +68,7 @@ ngx_destroy_pool(ngx_pool_t *pool)
 
     /*
      * we could allocate the pool->log from this pool
-     * so we can not use this log while the free()ing the pool
+     * so we cannot use this log while free()ing the pool
      */
 
     for (p = pool, n = pool->d.next; /* void */; p = n, n = n->d.next) {
index 4dcfe01ebfc038a86bc073e15eeffe27695a4654..75bc6578d4c4da53885f92b76443333dd9195080 100644 (file)
@@ -381,7 +381,7 @@ ngx_vslprintf(u_char *buf, u_char *last, const char *fmt, va_list args)
 
                     /*
                      * (int64_t) cast is required for msvc6:
-                     * it can not convert uint64_t to double
+                     * it cannot convert uint64_t to double
                      */
                     ui64 = (uint64_t) ((f - (int64_t) ui64) * scale + 0.5);
 
index c57d37ec4a0771ef479b17ec59f0d62bf36b6eb3..8a472ffe80d3bac9420b1d090624327234500c66 100644 (file)
@@ -1027,7 +1027,7 @@ ngx_event_use(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
                                "when the server runs without a master process "
                                "the \"%V\" event type must be the same as "
                                "in previous configuration - \"%s\" "
-                               "and it can not be changed on the fly, "
+                               "and it cannot be changed on the fly, "
                                "to change it you need to stop server "
                                "and start it again",
                                &value[1], old_ecf->name);
index 2931a9f4e2e58a3ad9c60c46b9cc19d83443414a..76a1a1f41aeee51465b07aade36d1c2087fc378e 100644 (file)
@@ -103,11 +103,11 @@ ngx_event_expire_timers(void)
             if (ngx_threaded && ngx_trylock(ev->lock) == 0) {
 
                 /*
-                 * We can not change the timer of the event that is been
-                 * handling by another thread.  And we can not easy walk
-                 * the rbtree to find next expired timer so we exit the loop.
-                 * However it should be rare case when the event that is
-                 * been handling has expired timer.
+                 * We cannot change the timer of the event that is being
+                 * handled by another thread.  And we cannot easy walk
+                 * the rbtree to find next expired timer so we exit the loop.
+                 * However, it should be a rare case when the event that is
+                 * being handled has an expired timer.
                  */
 
                 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, ev->log, 0,
index 0761c1654fd15dbc69715a8487190ea68f85b6e0..3bd9d3e943e0a2c027963a17fbb96991521a5c83 100644 (file)
@@ -158,7 +158,7 @@ ngx_http_dav_handler(ngx_http_request_t *r)
 
         if (r->uri.data[r->uri.len - 1] == '/') {
             ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
-                          "can not PUT to a collection");
+                          "cannot PUT to a collection");
             return NGX_HTTP_CONFLICT;
         }
 
index 1d409582c9dfd5f25ec1d42da0e48410bc63922d..c3f74ae19b1e3c737c7c44732ae0221f536788d7 100644 (file)
@@ -507,7 +507,7 @@ ngx_http_headers_expires(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
         minus = 0;
 
         if (hcf->expires == NGX_HTTP_EXPIRES_MODIFIED) {
-            return "daily time can not be used with \"modified\" parameter";
+            return "daily time cannot be used with \"modified\" parameter";
         }
 
         hcf->expires = NGX_HTTP_EXPIRES_DAILY;
index b2bfbf477a70520c9b4c977b68fb43986e107653..9728d5411cd48020cb96df33c8b652b47b3e8297 100644 (file)
@@ -960,7 +960,7 @@ buffer:
 
         if (log->script) {
             ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
-                               "buffered logs can not have variables in name");
+                               "buffered logs cannot have variables in name");
             return NGX_CONF_ERROR;
         }
 
index 5ca9fed3cb66f64ed288f4fb8df458b785db180f..e8090453aaed3df26f32cfdd58e4efd52a2fa4e2 100644 (file)
@@ -1226,7 +1226,7 @@ ngx_http_add_addresses(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf,
 #endif
 
     /*
-     * we can not compare whole sockaddr struct's as kernel
+     * we cannot compare whole sockaddr struct's as kernel
      * may fill some fields in inherited sockaddr struct's
      */
 
index 0fb50124d7f2e89eb394210e04b5599d41809b45..d51dc23d1846c3c808f49e199e0f7ad9477d7aa6 100644 (file)
@@ -3191,7 +3191,7 @@ ngx_http_core_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
                               prev->underscores_in_headers, 0);
 
     if (conf->server_names.nelts == 0) {
-        /* the array has 4 empty preallocated elements, so push can not fail */
+        /* the array has 4 empty preallocated elements, so push cannot fail */
         sn = ngx_array_push(&conf->server_names);
 #if (NGX_PCRE)
         sn->regex = NULL;
index 02994b8087f87b104b59694d8279545a607e1a2c..faae478293218988d6be9b83edcea24b0498de31 100644 (file)
@@ -12,7 +12,7 @@
  * The strerror() messages are copied because:
  *
  * 1) strerror() and strerror_r() functions are not Async-Signal-Safe,
- *    therefore, they can not be used in signal handlers;
+ *    therefore, they cannot be used in signal handlers;
  *
  * 2) a direct sys_errlist[] array may be used instead of these functions,
  *    but Linux linker warns about its usage:
index 557f9de6ab1c8282daa860c34b496e306f4215b1..49662365f90a23d26f7f59f105cd4554c2690625 100644 (file)
@@ -23,7 +23,7 @@
  *    kqueue EVFILT_AIO filter is level triggered only: an event repeats
  *    until aio_return() will be called;
  *
- *    aio_cancel() can not cancel file AIO: it returns AIO_NOTCANCELED always.
+ *    aio_cancel() cannot cancel file AIO: it returns AIO_NOTCANCELED always.
  */
 
 
index 70cdb74950f467ef224faff3dd61d618497e27a8..039243e96bd39b5473c6767ba333aa9f193cf6d6 100644 (file)
@@ -11,7 +11,7 @@
 
 /*
  * Although FreeBSD sendfile() allows to pass a header and a trailer,
- * it can not send a header with a part of the file in one packet until
+ * it cannot send a header with a part of the file in one packet until
  * FreeBSD 5.3.  Besides, over the fast ethernet connection sendfile()
  * may send the partially filled packets, i.e. the 8 file pages may be sent
  * as the 11 full 1460-bytes packets, then one incomplete 324-bytes packet,
index ad2fc19de9ff7bacb30062a1a0adf17561118081..08069c4b698d2b8280f6379fa89ab1d24a8af3d9 100644 (file)
@@ -541,7 +541,7 @@ ngx_process_get_status(void)
         if (WEXITSTATUS(status) == 2 && ngx_processes[i].respawn) {
             ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0,
                           "%s %P exited with fatal code %d "
-                          "and can not be respawn",
+                          "and cannot be respawned",
                           process, pid, WEXITSTATUS(status));
             ngx_processes[i].respawn = 0;
         }
index 3ff0f75c6a2f1446eee5ab7789c9cd08f014fdb6..863176facde4d3a4febe7bf166364bde7ca8cb3f 100644 (file)
@@ -620,7 +620,8 @@ ngx_reap_children(ngx_cycle_t *cycle)
                     == NGX_INVALID_PID)
                 {
                     ngx_log_error(NGX_LOG_ALERT, cycle->log, 0,
-                                  "can not respawn %s", ngx_processes[i].name);
+                                  "could not respawn %s",
+                                  ngx_processes[i].name);
                     continue;
                 }
 
index 10379104f56111ec60ef18254af1b3937027ef5c..c446572613f65ad108b5e6bce723d1baca2560e1 100644 (file)
@@ -530,7 +530,7 @@ ngx_reap_worker(ngx_cycle_t *cycle, HANDLE h)
                 == NGX_INVALID_PID)
             {
                 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0,
-                              "can not respawn %s", ngx_processes[n].name);
+                              "could not respawn %s", ngx_processes[n].name);
 
                 if (n == ngx_last_process - 1) {
                     ngx_last_process--;