From 781edbd446cbe3ea28cfff6a7d13f1ac5fc8600a Mon Sep 17 00:00:00 2001 From: John Bampton Date: Wed, 14 May 2025 02:01:02 +1000 Subject: [PATCH] misc: fix spelling --- CONTRIBUTING.md | 2 +- NEWS | 4 ++-- doc/guides/compile.md | 2 +- doc/guides/debugger.md | 10 +++++----- doc/guides/mrbgems.md | 4 ++-- doc/mruby3.1.md | 2 +- doc/mruby3.4.md | 4 ++-- mrbgems/mruby-bigint/README-fgmp.md | 2 +- mrbgems/mruby-bigint/core/bigint.h | 2 +- mrbgems/mruby-bin-mruby/tools/mruby/mruby.c | 2 +- src/error.c | 4 ++-- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7d552652c..ed5a36958 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,7 +12,7 @@ things in mind before submitting your pull request: - Create a branch which is dedicated to your change - Test your changes before creating a pull request (`rake test`) - If possible write a test case which confirms your change -- Don't mix several features or bug-fixes in one pull request +- Don't mix several features or bugfixes in one pull request - Create a meaningful commit message - Explain your change (i.e. with a link to the issue you are fixing) - Use mrbgem to provide non ISO features (classes, modules and methods) unless diff --git a/NEWS b/NEWS index 838dfa479..4969e1798 100644 --- a/NEWS +++ b/NEWS @@ -35,7 +35,7 @@ NEWS # Build & Configuration - New Build Target: `test:run:serial`, `test:run:serial:lib`, `test:run:serial:bin` ([#6423](https://github.com/mruby/mruby/pull/6423)) -- New Platform: Playstation Portable ([#6022](https://github.com/mruby/mruby/pull/6465)) +- New Platform: PlayStation Portable ([#6022](https://github.com/mruby/mruby/pull/6465)) - New Platform: emscripten ([#6487](https://github.com/mruby/mruby/pull/6487)) - New Config: no-float (with MRB_NO_FLOAT) ([32200f1](https://github.com/mruby/mruby/commit/32200f1)) @@ -240,7 +240,7 @@ NEWS - [#6461](https://github.com/mruby/mruby/pull/6461) To create a release package file in draft - [#6462](https://github.com/mruby/mruby/pull/6462) Properly cast the return value of `memchr()` - [#6463](https://github.com/mruby/mruby/pull/6463) Add `level` argument to `File.dirname` -- [#6465](https://github.com/mruby/mruby/pull/6465) Add initial playstation portable crossbuild support +- [#6465](https://github.com/mruby/mruby/pull/6465) Add initial PlayStation portable crossbuild support - [#6468](https://github.com/mruby/mruby/pull/6468) Fixed missing changes to `IB_FIND_BY_KEY()` parameter names - [#6469](https://github.com/mruby/mruby/pull/6469) Add more `const` qualifier for `RProc` - [#6472](https://github.com/mruby/mruby/pull/6472) Moved tests for `Integer#quo` diff --git a/doc/guides/compile.md b/doc/guides/compile.md index ccb81f79a..697f82835 100644 --- a/doc/guides/compile.md +++ b/doc/guides/compile.md @@ -176,7 +176,7 @@ If you need an include path of header file use `search_header_path`: fail 'iconv.h not found' unless conf.cc.search_header_path 'iconv.h' ``` -If you need a full file name of header file use `search_header`: +If you need a full filename of header file use `search_header`: ```ruby # Searches `iconv.h`. diff --git a/doc/guides/debugger.md b/doc/guides/debugger.md index fd8709ef6..7059132c0 100644 --- a/doc/guides/debugger.md +++ b/doc/guides/debugger.md @@ -52,7 +52,7 @@ To invoke the mruby debugger, just type `mrdb`. To specify the script file: ```bash -$ mrdb [option] file name +$ mrdb [option] filename ``` For example: Debugging sample.rb @@ -121,7 +121,7 @@ Be aware that the breakpoint command will not check the validity of the class na You can get the current breakpoint information by the following options. -breakpoint breakpoint number : file name. line number +breakpoint breakpoint number : filename. line number breakpoint breakpoint number : [class name,] method name @@ -267,7 +267,7 @@ Example: ``` (sample.rb:1) info breakpoints Num Type Enb What -1 breakpoint y at sample.rb:3 -> file name,line number +1 breakpoint y at sample.rb:3 -> filename,line number 2 breakpoint n in Sample_class:sample_class_method -> [class:]method name 3 breakpoint y in sample_global_method ``` @@ -301,11 +301,11 @@ When you do not specify both the `first` and `last` options, you will receive th Example: ``` -Specifying file name and first row number +Specifying filename and first row number sample.rb:1) list sample2.rb:5 ``` -Specifying the file name and the first and last row number: +Specifying the filename and the first and last row number: ``` (sample.rb:1) list sample2.rb:6,7 diff --git a/doc/guides/mrbgems.md b/doc/guides/mrbgems.md index fc15c0530..7087965e7 100644 --- a/doc/guides/mrbgems.md +++ b/doc/guides/mrbgems.md @@ -368,7 +368,7 @@ mruby can be extended with pure Ruby. It is possible to override existing classes or add new ones in this way. Put all Ruby files into the `mrblib` directory. -### Pre-Conditions +### Preconditions none @@ -400,7 +400,7 @@ mruby codes under `mrblib` directory would be executed after gem init C function is called. Make sure _mruby script_ depends on _C code_ and _C code_ doesn't depend on _mruby script_. -### Pre-Conditions +### Preconditions See C and Ruby example. diff --git a/doc/mruby3.1.md b/doc/mruby3.1.md index d64b699da..7d52e2535 100644 --- a/doc/mruby3.1.md +++ b/doc/mruby3.1.md @@ -197,7 +197,7 @@ For better and faster hash values. --- -# Major bug fixes +# Major bugfixes - Fix infinite recursive call bugs in integer division [98799aa6](https://github.com/mruby/mruby/commit/98799aa6) - Fix to raise TypeError with super inside instance_eval / class_eval [#5476](https://github.com/mruby/mruby/pull/5476) diff --git a/doc/mruby3.4.md b/doc/mruby3.4.md index ab1b7f14b..a22c08f5d 100644 --- a/doc/mruby3.4.md +++ b/doc/mruby3.4.md @@ -32,7 +32,7 @@ # Build & Configuration - New Build Target: `test:run:serial`, `test:run:serial:lib`, `test:run:serial:bin` ([#6423](https://github.com/mruby/mruby/pull/6423)) -- New Platform: Playstation Portable ([#6022](https://github.com/mruby/mruby/pull/6465)) +- New Platform: PlayStation Portable ([#6022](https://github.com/mruby/mruby/pull/6465)) - New Platform: emscripten ([#6487](https://github.com/mruby/mruby/pull/6487)) - New Config: no-float (with MRB_NO_FLOAT) ([32200f1](https://github.com/mruby/mruby/commit/32200f1)) @@ -237,7 +237,7 @@ - [#6461](https://github.com/mruby/mruby/pull/6461) To create a release package file in draft - [#6462](https://github.com/mruby/mruby/pull/6462) Properly cast the return value of `memchr()` - [#6463](https://github.com/mruby/mruby/pull/6463) Add `level` argument to `File.dirname` -- [#6465](https://github.com/mruby/mruby/pull/6465) Add initial playstation portable crossbuild support +- [#6465](https://github.com/mruby/mruby/pull/6465) Add initial PlayStation portable crossbuild support - [#6468](https://github.com/mruby/mruby/pull/6468) Fixed missing changes to `IB_FIND_BY_KEY()` parameter names - [#6469](https://github.com/mruby/mruby/pull/6469) Add more `const` qualifier for `RProc` - [#6472](https://github.com/mruby/mruby/pull/6472) Moved tests for `Integer#quo` diff --git a/mrbgems/mruby-bigint/README-fgmp.md b/mrbgems/mruby-bigint/README-fgmp.md index 245db8fe2..de0adfa69 100644 --- a/mrbgems/mruby-bigint/README-fgmp.md +++ b/mrbgems/mruby-bigint/README-fgmp.md @@ -50,7 +50,7 @@ I hereby place this file and all of FGMP in the public domain. Thanks to Paul Rouse for changes to get fgmp to work on a 286 MS-DOS compiler, the functions mpz_sqrt and -mpz_sqrtrem, plus other general bug fixes. +mpz_sqrtrem, plus other general bugfixes. Thanks also to Erick Gallesio for a fix to mpz_init_set_str diff --git a/mrbgems/mruby-bigint/core/bigint.h b/mrbgems/mruby-bigint/core/bigint.h index f5b24bb58..667b923ce 100644 --- a/mrbgems/mruby-bigint/core/bigint.h +++ b/mrbgems/mruby-bigint/core/bigint.h @@ -19,7 +19,7 @@ * I'm already aware that fgmp is considerably slower than gmp * * CREDITS: - * Paul Rouse - generic bug fixes, mpz_sqrt and + * Paul Rouse - generic bugfixes, mpz_sqrt and * mpz_sqrtrem, and modifications to get fgmp to compile on a system * with int and long of different sizes (specifically MS-DOS,286 compiler) * Also see the file "notes" included with the fgmp distribution, for diff --git a/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c b/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c index 895897ff3..0f07e4501 100644 --- a/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c +++ b/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c @@ -342,7 +342,7 @@ main(int argc, char **argv) mrb_ccontext_cleanup_local_variables(mrb, c); } - /* set program file name */ + /* set program filename */ mrb_ccontext_filename(mrb, c, cmdline); /* Load program */ diff --git a/src/error.c b/src/error.c index 7aead11f2..316223f78 100644 --- a/src/error.c +++ b/src/error.c @@ -126,9 +126,9 @@ exc_to_s(mrb_state *mrb, mrb_value exc) * call-seq: * exception.inspect -> string * - * Returns this exception's file name, line number, + * Returns this exception's filename, line number, * message and class name. - * If file name or line number is not set, + * If filename or line number is not set, * returns message and class name. */