treewide: Fix spelling mistakes s/critera/criteria/ s/ommitted/omitted/ s/succesful/successful/ Change-Id: Iab62336fa37db8fab0dc84affa2cfabfabfabada Reviewed-on: https://gn-review.googlesource.com/c/gn/+/16120 Reviewed-by: Takuto Ikuta <tikuta@google.com> Commit-Queue: Takuto Ikuta <tikuta@google.com>
diff --git a/docs/reference.md b/docs/reference.md index 02295b7..fddf244 100644 --- a/docs/reference.md +++ b/docs/reference.md
@@ -833,12 +833,12 @@ --xcode-configs=<config_name_list> Configure the list of build configuration supported by the generated project. If specified, must be a list of semicolon-separated strings. - If ommitted, a single configuration will be used in the generated + If omitted, a single configuration will be used in the generated project derived from the build directory. --xcode-config-build-dir=<string> If present, must be a path relative to the source directory. It will - default to $root_out_dir if ommitted. The path is assumed to point to + default to $root_out_dir if omitted. The path is assumed to point to the directory where ninja needs to be invoked. This variable can be used to build for multiple configuration / platform / environment from the same generated Xcode project (assuming that the user has created a @@ -855,7 +855,7 @@ --xcode-additional-files-roots=<path_list> If present, must be a list of semicolon-separated paths. It will be used - as roots when looking for additional files to add. If ommitted, defaults + as roots when looking for additional files to add. If omitted, defaults to "//". --ninja-executable=<string> @@ -5815,7 +5815,7 @@ Not all GN targets that get evaluated are actually turned into ninja targets (see "gn help execution"). If this target is generated, then any targets in - the "gen_deps" list will also be generated, regardless of the usual critera. + the "gen_deps" list will also be generated, regardless of the usual criteria. Since "gen_deps" are not build time dependencies, there can be cycles between "deps" and "gen_deps" or within "gen_deps" itself.
diff --git a/src/gn/command_gen.cc b/src/gn/command_gen.cc index 5d4b75b..bf6d6df 100644 --- a/src/gn/command_gen.cc +++ b/src/gn/command_gen.cc
@@ -563,12 +563,12 @@ --xcode-configs=<config_name_list> Configure the list of build configuration supported by the generated project. If specified, must be a list of semicolon-separated strings. - If ommitted, a single configuration will be used in the generated + If omitted, a single configuration will be used in the generated project derived from the build directory. --xcode-config-build-dir=<string> If present, must be a path relative to the source directory. It will - default to $root_out_dir if ommitted. The path is assumed to point to + default to $root_out_dir if omitted. The path is assumed to point to the directory where ninja needs to be invoked. This variable can be used to build for multiple configuration / platform / environment from the same generated Xcode project (assuming that the user has created a @@ -585,7 +585,7 @@ --xcode-additional-files-roots=<path_list> If present, must be a list of semicolon-separated paths. It will be used - as roots when looking for additional files to add. If ommitted, defaults + as roots when looking for additional files to add. If omitted, defaults to "//". --ninja-executable=<string>
diff --git a/src/gn/commands.cc b/src/gn/commands.cc index f81f7ab..b535b20 100644 --- a/src/gn/commands.cc +++ b/src/gn/commands.cc
@@ -387,14 +387,14 @@ // static const CommandSwitches& CommandSwitches::Get() { CHECK(s_global_switches_.is_initialized()) - << "Missing previous succesful call to CommandSwitches::Init()"; + << "Missing previous successful call to CommandSwitches::Init()"; return s_global_switches_; } // static CommandSwitches CommandSwitches::Set(CommandSwitches new_switches) { CHECK(s_global_switches_.is_initialized()) - << "Missing previous succesful call to CommandSwitches::Init()"; + << "Missing previous successful call to CommandSwitches::Init()"; CommandSwitches result = std::move(s_global_switches_); s_global_switches_ = std::move(new_switches); return result;
diff --git a/src/gn/variables.cc b/src/gn/variables.cc index 8eb2a99..4013e16 100644 --- a/src/gn/variables.cc +++ b/src/gn/variables.cc
@@ -526,7 +526,7 @@ Not all GN targets that get evaluated are actually turned into ninja targets (see "gn help execution"). If this target is generated, then any targets in - the "gen_deps" list will also be generated, regardless of the usual critera. + the "gen_deps" list will also be generated, regardless of the usual criteria. Since "gen_deps" are not build time dependencies, there can be cycles between "deps" and "gen_deps" or within "gen_deps" itself.