From 07a39ed18c3a7026bcb971b6cd3926ae97327601 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:10 -0400 Subject: [PATCH 01/52] spelling: abcdefghijklmnopqrstuvwxyz Signed-off-by: Josh Soref --- src/http/cookie.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/cookie.cr b/src/http/cookie.cr index c7dad6d3df83..d22fdf1419d0 100644 --- a/src/http/cookie.cr +++ b/src/http/cookie.cr @@ -57,7 +57,7 @@ module HTTP name.each_byte do |byte| # valid characters for cookie-name per https://tools.ietf.org/html/rfc6265#section-4.1.1 # and https://tools.ietf.org/html/rfc2616#section-2.2 - # "!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUWVXYZ^_`abcdefghijklmnopqrstuvwxyz|~" + # "!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~" unless (0x21...0x7f).includes?(byte) && byte != 0x22 && byte != 0x28 && byte != 0x29 && byte != 0x2c && byte != 0x2f && !(0x3a..0x40).includes?(byte) && !(0x5b..0x5d).includes?(byte) && byte != 0x7b && byte != 0x7d raise IO::Error.new("Invalid cookie name") end From 2d21aeb7f5bf81c180a6eae9d4863ba5a46ac6e6 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:11 -0400 Subject: [PATCH 02/52] spelling: address Signed-off-by: Josh Soref --- src/uri.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uri.cr b/src/uri.cr index 508adc048da5..d96bee865ee0 100644 --- a/src/uri.cr +++ b/src/uri.cr @@ -316,7 +316,7 @@ class URI # # host = IP-literal / IPv4address / reg-name # - # The valid characters include unreserved, sub-delims, ':', '[', ']' (IPv6-Adress) + # The valid characters include unreserved, sub-delims, ':', '[', ']' (IPv6-Address) URI.encode(host, io) { |byte| URI.unreserved?(byte) || URI.sub_delim?(byte) || byte.unsafe_chr.in?(':', '[', ']') } end From a5c32f58856997d5bba9a9d0fcace029ab324da0 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:40:25 -0400 Subject: [PATCH 03/52] spelling: all Signed-off-by: Josh Soref --- src/xml/builder.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xml/builder.cr b/src/xml/builder.cr index d898e2259f36..7eead7fbc0fd 100644 --- a/src/xml/builder.cr +++ b/src/xml/builder.cr @@ -374,7 +374,7 @@ module XML xml.quote_char = quote_char if quote_char v = yield xml - # EndDocument is still necessary to ensure all all elements are closed, even + # EndDocument is still necessary to ensure all elements are closed, even # when StartDocument is omitted. xml.end_document xml.flush From f6df7350d2aeffd9195e4529065629f1882ec367 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:12 -0400 Subject: [PATCH 04/52] spelling: allocation Signed-off-by: Josh Soref --- src/compiler/crystal/semantic/main_visitor.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/semantic/main_visitor.cr b/src/compiler/crystal/semantic/main_visitor.cr index 971cb1eaa9e7..c6b222319e51 100644 --- a/src/compiler/crystal/semantic/main_visitor.cr +++ b/src/compiler/crystal/semantic/main_visitor.cr @@ -3306,7 +3306,7 @@ module Crystal # If a variable is being assigned to inside a block: # - if the variable is a new variable then there's no need to mark is a mutably # closured because unless it gets assigned again it will be a different - # variable alloction each time + # variable allocation each time # - if the variable already existed but it's assigned in the same context # as before, if it's not closured already then it still shouldn't # be marked as mutably closured From c7f1682a294e45036467c6e01f25d2155d0f9b96 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 2 May 2022 17:53:54 -0400 Subject: [PATCH 05/52] spelling: and Signed-off-by: Josh Soref --- spec/compiler/semantic/if_spec.cr | 2 +- spec/compiler/semantic/while_spec.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/compiler/semantic/if_spec.cr b/spec/compiler/semantic/if_spec.cr index 843873dd0c61..9ed5199a21ba 100644 --- a/spec/compiler/semantic/if_spec.cr +++ b/spec/compiler/semantic/if_spec.cr @@ -13,7 +13,7 @@ describe "Semantic: if" do assert_type("if 1 == 1; 1; else; 'a'; end", inject_primitives: true) { union_of(int32, char) } end - it "types and if with and and assignment" do + it "types `if` with `&&` and assignment" do assert_type(" struct Number def abs diff --git a/spec/compiler/semantic/while_spec.cr b/spec/compiler/semantic/while_spec.cr index 87a8d74b7d27..06ba93cad29d 100644 --- a/spec/compiler/semantic/while_spec.cr +++ b/spec/compiler/semantic/while_spec.cr @@ -171,7 +171,7 @@ describe "Semantic: while" do )) { int32 } end - it "restricts type after while with not and and (#4242)" do + it "restricts type after `while` with `not` and `and` (#4242)" do assert_type(%( a = nil b = nil From 1df649d88d6bac1556da664db7cfd8a55174a86d Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:39:48 -0400 Subject: [PATCH 06/52] spelling: another Signed-off-by: Josh Soref --- src/fiber.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fiber.cr b/src/fiber.cr index 4d67d215f2da..89aaee7987ce 100644 --- a/src/fiber.cr +++ b/src/fiber.cr @@ -217,7 +217,7 @@ class Fiber # Adds this fiber to the scheduler's runnables queue for the current thread. # # This signals to the scheduler that the fiber is eligible for being resumed - # the next time it has the opportunity to reschedule to an other fiber. There + # the next time it has the opportunity to reschedule to another fiber. There # are no guarantees when that will happen. def enqueue : Nil Crystal::Scheduler.enqueue(self) From f64ee6566864afb187e90f8399569f750af0616b Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:13 -0400 Subject: [PATCH 07/52] spelling: appropriate Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4c1cf409e50..fb5c88a33dd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -815,7 +815,7 @@ - Refactor `Socket::Addrinfo::Error` based on `os_error `. ([#10761](https://github.com/crystal-lang/crystal/pull/10761), thanks @straight-shoota) - Add `WinError.wsa_value` and specs for `WinError`. ([#10762](https://github.com/crystal-lang/crystal/pull/10762), thanks @straight-shoota) - Add specs for `Errno`. ([#10763](https://github.com/crystal-lang/crystal/pull/10763), thanks @straight-shoota) - - Refactor: Move win32 libc bindings from `winbase.cr` to approriate files. ([#10771](https://github.com/crystal-lang/crystal/pull/10771), thanks @straight-shoota) + - Refactor: Move win32 libc bindings from `winbase.cr` to appropriate files. ([#10771](https://github.com/crystal-lang/crystal/pull/10771), thanks @straight-shoota) - Refactor: Change protocol socket fd to `Socket::Handle`. ([#10772](https://github.com/crystal-lang/crystal/pull/10772), thanks @straight-shoota) - Fix `Socket::Connect` error in addrinfo inherit `os_error`. ([#10782](https://github.com/crystal-lang/crystal/pull/10782), thanks @straight-shoota) - Reorganize some win32 libc bindings ([#10776](https://github.com/crystal-lang/crystal/pull/10776), thanks @straight-shoota) From 99d6dab246aa16c362ca2a1c97d29fc5203ccba2 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:13 -0400 Subject: [PATCH 08/52] spelling: assigning Signed-off-by: Josh Soref --- src/compiler/crystal/semantic/bindings.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/semantic/bindings.cr b/src/compiler/crystal/semantic/bindings.cr index 0421a4418fb7..f87ef0b5dde0 100644 --- a/src/compiler/crystal/semantic/bindings.cr +++ b/src/compiler/crystal/semantic/bindings.cr @@ -253,7 +253,7 @@ module Crystal return freeze_type end - # We also allow assining Proc(*T, NoReturn) to Proc(*T, U) + # We also allow assigning Proc(*T, NoReturn) to Proc(*T, U) if type.all? { |a_type| a_type.is_a?(ProcInstanceType) && (a_type.return_type.is_a?(NoReturnType) || a_type.return_type == freeze_type.return_type) && From db98566811c16e48060b3762c4c18109195c71c4 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:45:27 -0400 Subject: [PATCH 09/52] spelling: can Signed-off-by: Josh Soref --- src/string.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/string.cr b/src/string.cr index ca67ce44ddda..8a31657109ab 100644 --- a/src/string.cr +++ b/src/string.cr @@ -1152,7 +1152,7 @@ class String # Returns a new string built from *count* bytes starting at *start* byte. # - # *start* can can be negative to start counting + # *start* can be negative to start counting # from the end of the string. # If *count* is bigger than the number of bytes from *start* to `#bytesize`, # only remaining bytes are returned. @@ -1212,7 +1212,7 @@ class String # Returns a substring starting from the *start* byte. # - # *start* can can be negative to start counting + # *start* can be negative to start counting # from the end of the string. # # This method should be avoided, From 51ece831730e6764e76a262a8161bd227fe12512 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:15 -0400 Subject: [PATCH 10/52] spelling: catch_ret Signed-off-by: Josh Soref --- src/compiler/crystal/codegen/exception.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/crystal/codegen/exception.cr b/src/compiler/crystal/codegen/exception.cr index 488aaab83c70..96e4598ce7da 100644 --- a/src/compiler/crystal/codegen/exception.cr +++ b/src/compiler/crystal/codegen/exception.cr @@ -183,8 +183,8 @@ class Crystal::CodeGenVisitor # If the rescue restriction matches, codegen the rescue block. position_at_end this_rescue_block - # On windows, we are "inside" the catchpad block. It's difficult to track when to catchret when - # codegenning the entire rescue body, so we catchret early and execute the rescue bodies "outside" the + # On windows, we are "inside" the catchpad block. It's difficult to track when to catch_ret when + # codegenning the entire rescue body, so we catch_ret early and execute the rescue bodies "outside" the # rescue block. if catch_pad = @catch_pad catch_ret_target_block = new_block "this_rescue_target" From d7bce1ce619595c79c24a69300928475d4809393 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:35:52 -0400 Subject: [PATCH 11/52] spelling: class Signed-off-by: Josh Soref --- spec/compiler/codegen/class_var_spec.cr | 2 +- spec/compiler/semantic/generic_class_spec.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/compiler/codegen/class_var_spec.cr b/spec/compiler/codegen/class_var_spec.cr index 77954dd8335e..9a48ab36b51b 100644 --- a/spec/compiler/codegen/class_var_spec.cr +++ b/spec/compiler/codegen/class_var_spec.cr @@ -542,7 +542,7 @@ describe "Codegen: class var" do )).to_i.should eq(1) end - it "codegens generic class class var" do + it "codegens generic class with class var" do run(%( class Foo(T) @@bar = 1 diff --git a/spec/compiler/semantic/generic_class_spec.cr b/spec/compiler/semantic/generic_class_spec.cr index bcc06e9654a9..1f4a13046257 100644 --- a/spec/compiler/semantic/generic_class_spec.cr +++ b/spec/compiler/semantic/generic_class_spec.cr @@ -654,7 +654,7 @@ describe "Semantic: generic class" do )) { nilable int32 } end - it "doesn't duplicate overload on generic class class method (#2385)" do + it "doesn't duplicate overload on generic class with class method (#2385)" do error = assert_error <<-CR class Foo(T) def self.foo(x : Int32) From 4e69a5130c3dad74cbce2ef015f9fa364f3facbf Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:16 -0400 Subject: [PATCH 12/52] spelling: content Signed-off-by: Josh Soref --- src/compiler/crystal/tools/playground/public/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/tools/playground/public/session.js b/src/compiler/crystal/tools/playground/public/session.js index ba33e49a5a5e..55ea04c20687 100644 --- a/src/compiler/crystal/tools/playground/public/session.js +++ b/src/compiler/crystal/tools/playground/public/session.js @@ -17,7 +17,7 @@ function ModalDialog(options) { $("body").append( this.modalDom = $("
").addClass("modal modal-fixed-footer") - .append(this.modalContenDom = $("
").addClass("modal-content")) + .append(this.modalContentDom = $("
").addClass("modal-content")) .append($("
").addClass("modal-footer") .append($("").text("Close") .addClass("modal-action modal-close waves-effect waves-green btn-flat") From ae9d9b2a10f2bfd8129b86ff978d86cfbbbc13a9 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:17 -0400 Subject: [PATCH 13/52] spelling: conversion Signed-off-by: Josh Soref --- src/yaml/to_yaml.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yaml/to_yaml.cr b/src/yaml/to_yaml.cr index bdabcaaad79b..8557ec4bf7ba 100644 --- a/src/yaml/to_yaml.cr +++ b/src/yaml/to_yaml.cr @@ -41,7 +41,7 @@ end module Iterator(T) # Converts the content of an iterator to YAML. - # The convertion is done in a lazy way. + # The conversion is done in a lazy way. # In contrast to `Iterator#to_json` this operation requires memory for the # for the complete YAML document def to_yaml(yaml : YAML::Nodes::Builder) From 9e8026e58d4f6cf4bc15e1dcb48c46300916b3f0 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:18 -0400 Subject: [PATCH 14/52] spelling: corresponds Signed-off-by: Josh Soref --- src/compiler/crystal/interpreter/context.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/interpreter/context.cr b/src/compiler/crystal/interpreter/context.cr index c52effd3daa6..c0ad99160c1a 100644 --- a/src/compiler/crystal/interpreter/context.cr +++ b/src/compiler/crystal/interpreter/context.cr @@ -119,7 +119,7 @@ class Crystal::Repl::Context end end - # This returns the CompiledDef that correspnds to __crystal_raise_overflow + # This returns the CompiledDef that corresponds to __crystal_raise_overflow getter(crystal_raise_overflow_compiled_def : CompiledDef) do call = Call.new(nil, "__crystal_raise_overflow", global: true) program.semantic(call) From bc6251c8b35bcefd98a700e56edb4d397814d3d2 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:19 -0400 Subject: [PATCH 15/52] spelling: daylight Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb5c88a33dd9..16d7db757576 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4305,7 +4305,7 @@ * Added `String#insert` * Added `Time::EpochConverter` and `Time::EpochMillisConverter` * Added `%s` (unix epoch) directive to `Time::Format` -* `Time` now honours Dayling Saving and `ENV["TZ"]` +* `Time` now honours Daylight Saving and `ENV["TZ"]` * Added `HTTP::Server::Response#cookies` (thanks @jhass) * Added `Array#bsearch`, `Array#bsearch_index` and `Range#bsearch` (thanks @MakeNowJust) * Added `Range#reverse_each` iterator (thanks @omninonsense) From 4855823fcd0c61078b07a6bc5a1c0ebe97bd1a9c Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:20 -0400 Subject: [PATCH 16/52] spelling: decimal Signed-off-by: Josh Soref --- src/float/printer.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/float/printer.cr b/src/float/printer.cr index 6e30a1e5215d..5d72ab578147 100644 --- a/src/float/printer.cr +++ b/src/float/printer.cr @@ -15,7 +15,7 @@ module Float::Printer # this directly. # # *point_range* designates the boundaries of scientific notation which is used - # for all values whose decmial point position is outside that range. + # for all values whose decimal point position is outside that range. def print(v : Float64 | Float32, io : IO, *, point_range = -3..15) : Nil d = IEEE.to_uint(v) From fda4f649367c1f5d047cd99e916b8cf00225fafc Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:20 -0400 Subject: [PATCH 17/52] spelling: emojis Signed-off-by: Josh Soref --- src/string/grapheme/grapheme.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string/grapheme/grapheme.cr b/src/string/grapheme/grapheme.cr index 9fadc70e88be..1e8974c91893 100644 --- a/src/string/grapheme/grapheme.cr +++ b/src/string/grapheme/grapheme.cr @@ -95,7 +95,7 @@ class String # ``` # # This combination of codepoints is common in some non-latin scripts. It's also - # often used with emojies to create customized combination. For example, the + # often used with emojis to create customized combination. For example, the # thumbs up sign `👍` (`U+1F44D`) combined with an emoji modifier such as # `U+1F3FC` assign a colour to the emoji. # From 136b9b2af374a610dc9ee2e46a5d70df18a28a14 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:21 -0400 Subject: [PATCH 18/52] spelling: enabled Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16d7db757576..207150a4857d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3684,7 +3684,7 @@ - Add custom extension support to `Tempfile`. ([#5264](https://github.com/crystal-lang/crystal/issues/5264), thanks @jreinert) - Add `reduce` method to `TupleLiteral` and `ArrayLiteral` when using macros. ([#5294](https://github.com/crystal-lang/crystal/issues/5294), thanks @javanut13) - Export a JSON representation of the documentation in the generated output. ([#4746](https://github.com/crystal-lang/crystal/issues/4746) and [#5228](https://github.com/crystal-lang/crystal/issues/5228), thanks @straight-shoota) -- Make `gc/none` garbage collection compile again and allow it to be enbled using `-Dgc_none` compiler flag. ([#5314](https://github.com/crystal-lang/crystal/issues/5314), thanks @ysbaddaden) +- Make `gc/none` garbage collection compile again and allow it to be enabled using `-Dgc_none` compiler flag. ([#5314](https://github.com/crystal-lang/crystal/issues/5314), thanks @ysbaddaden) ## Standard library bugs fixed - Make `String#[]` unable to read out-of-bounds when the string ends in a unicode character. ([#5257](https://github.com/crystal-lang/crystal/issues/5257), thanks @Papierkorb) From f273f49fa99e6d807faf4c47853b58b8e8826c80 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:22 -0400 Subject: [PATCH 19/52] spelling: entity Signed-off-by: Josh Soref --- spec/std/html_spec.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/std/html_spec.cr b/spec/std/html_spec.cr index f09f459baf92..016dd0d04aa5 100644 --- a/spec/std/html_spec.cr +++ b/spec/std/html_spec.cr @@ -42,9 +42,9 @@ describe "HTML" do end it "unescapes with invalid entities" do - str = HTML.unescape("&<&>"&abcdefghijklmn &ThisIsNotAnEntitiy;") + str = HTML.unescape("&<&>"&abcdefghijklmn &ThisIsNotAnEntity;") - str.should eq("&<&>\"&abcdefghijklmn &ThisIsNotAnEntitiy;") + str.should eq("&<&>\"&abcdefghijklmn &ThisIsNotAnEntity;") end it "unescapes hex encoded chars" do From 755f2774e0d0c8301679ba3b5f203baec84288b1 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:23 -0400 Subject: [PATCH 20/52] spelling: ephemeral Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 207150a4857d..8b43b41fc784 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -395,7 +395,7 @@ - Add more `check_headers` to `HTTP::Server::Response` ([#11253](https://github.com/crystal-lang/crystal/pull/11253), thanks @straight-shoota) - Enable `LogHandler` address for win32 ([#11465](https://github.com/crystal-lang/crystal/pull/11465), thanks @straight-shoota) - Enable two specs to run on all platforms ([#11467](https://github.com/crystal-lang/crystal/pull/11467), thanks @straight-shoota) -- `TCPServer`: explain how to get an ephermal port ([#11407](https://github.com/crystal-lang/crystal/pull/11407), thanks @rdp) +- `TCPServer`: explain how to get an ephemeral port ([#11407](https://github.com/crystal-lang/crystal/pull/11407), thanks @rdp) - Fix `HTTP::Server::Response#close` when replaced output syncs close ([#11631](https://github.com/crystal-lang/crystal/pull/11631), thanks @straight-shoota) ### Numeric From b0a655aa73b73d646ce1a48adbec34fc92e2f35d Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:24 -0400 Subject: [PATCH 21/52] spelling: epilogue Signed-off-by: Josh Soref --- src/crystal/dwarf/line_numbers.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crystal/dwarf/line_numbers.cr b/src/crystal/dwarf/line_numbers.cr index ccb79ca571db..ab6724629053 100644 --- a/src/crystal/dwarf/line_numbers.cr +++ b/src/crystal/dwarf/line_numbers.cr @@ -14,7 +14,7 @@ module Crystal ConstAddPc = 8 FixedAdvancePc = 9 SetPrologueEnd = 10 - SetEpiloqueBegin = 11 + SetEpilogueBegin = 11 SetIsa = 12 end @@ -486,7 +486,7 @@ module Crystal registers.op_index = 0_u32 when LNS::SetPrologueEnd registers.prologue_end = true - when LNS::SetEpiloqueBegin + when LNS::SetEpilogueBegin registers.epilogue_begin = true when LNS::SetIsa registers.isa = DWARF.read_unsigned_leb128(@io) From 7388933c6f5168df2f30117de6dceafa839a482f Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:25 -0400 Subject: [PATCH 22/52] spelling: established Signed-off-by: Josh Soref --- src/openssl/ssl/socket.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openssl/ssl/socket.cr b/src/openssl/ssl/socket.cr index 9580c0afd00b..c0a3a6e5597b 100644 --- a/src/openssl/ssl/socket.cr +++ b/src/openssl/ssl/socket.cr @@ -266,7 +266,7 @@ abstract class OpenSSL::SSL::Socket < IO end # Returns the `OpenSSL::X509::Certificate` the peer presented, if a - # connection was esablished. + # connection was established. # # NOTE: Due to the protocol definition, a TLS/SSL server will always send a # certificate, if present. A client will only send a certificate when From 3ea1f2f1084da6623ba6982ac9d4f35dc6be9b42 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:26 -0400 Subject: [PATCH 23/52] spelling: expanded Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b43b41fc784..5fcd5e9de865 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4473,7 +4473,7 @@ * Added `Int#to_s(base)` for `base = 62` (thanks @jhass) * `JSON.parse` now returns `JSON::Any`, which allows traversal of JSON objects with less casts * Added `OpenSSL::PKCS5` (thanks @benoist) -* MemoryIO can now be created to read/write from a Slice(UInt8). In this mode MemoryIO can't be exapnded, and can optionally be written. And when creating a MemoryIO from a String, it's non-resizeable and read-only. +* MemoryIO can now be created to read/write from a Slice(UInt8). In this mode MemoryIO can't be expanded, and can optionally be written. And when creating a MemoryIO from a String, it's non-resizeable and read-only. * Added `Object#!~` (the opposite of `=~`) * `at_exit` now receives that exit status code in the block (thanks @MakeNowJust) * Allow using `Set` in JSON mappings (thanks @benoist) From 8fa5eb269f7d75f11027fed6d8a6dc34c487d3f6 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:27 -0400 Subject: [PATCH 24/52] spelling: functionality Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fcd5e9de865..06479363682c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4498,7 +4498,7 @@ ## 0.9.0 (2015-10-16) -* **(breaking change)** The `CGI` module's funcionality has been moved to `URI` and `HTTP::Params` +* **(breaking change)** The `CGI` module's functionality has been moved to `URI` and `HTTP::Params` * **(breaking change)** `IO#read()` is now `IO#gets_to_end`. Removed `IO#read(count)`, added `IO#skip(count)` * **(breaking change)** `json_mapping` is now `JSON.mapping`. `yaml_mapping` is now `YAML.mapping` * **(breaking change)** `StringIO` is now `MemoryIO` From 1062226fbb373ac852fadc256d69dd599df575ff Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Tue, 3 May 2022 12:08:24 -0400 Subject: [PATCH 25/52] spelling: github Signed-off-by: Josh Soref --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 51b5c04d5403..77ad67860f4b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -40,7 +40,7 @@ Issue tracker labels are sorted by category: community, kind, pr, status and top These are the issues where help from the community is most welcome. See above for a description on `newcomer`, `to-research`, `to-design`, `to-implement` and `to-document`. -Label `in-progress` is used to signal that someone from the community is already working on the issue (since Github does not allow for a non-team member to be _assigned_ to an issue). +Label `in-progress` is used to signal that someone from the community is already working on the issue (since GitHub does not allow for a non-team member to be _assigned_ to an issue). The label `shard-idea` refers to a feature proposal that, albeit good, is better suited as a separate shard rather than as part of the core library; so if you are looking for a shard of your own to start working on, these issues are good starting points. From 744c0f2336b0364e9772482059d0c4e98a17b782 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:39:12 -0400 Subject: [PATCH 26/52] spelling: gitlab Signed-off-by: Josh Soref --- src/compiler/crystal/tools/doc/project_info.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/tools/doc/project_info.cr b/src/compiler/crystal/tools/doc/project_info.cr index 82d7cb05c5d2..fe92fb54c80e 100644 --- a/src/compiler/crystal/tools/doc/project_info.cr +++ b/src/compiler/crystal/tools/doc/project_info.cr @@ -93,7 +93,7 @@ module Crystal::Doc path = path.rchop(".git") "https://github.com/#{path}/blob/%{refname}/%{path}#L%{line}" when "gitlab.com", "www.gitlab.com" - # Gitlab only resolves URLs with the canonical repo name without .git extension. + # GitLab only resolves URLs with the canonical repo name without .git extension. path = path.rchop(".git") "https://gitlab.com/#{path}/blob/%{refname}/%{path}#L%{line}" when "bitbucket.com", "www.bitbucket.com" From 9371ab5276c8112d680a4ce84c3a41b18bc9afd3 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:29 -0400 Subject: [PATCH 27/52] spelling: gnurefalt Signed-off-by: Josh Soref --- src/crystal/dwarf/abbrev.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crystal/dwarf/abbrev.cr b/src/crystal/dwarf/abbrev.cr index 2ed875aa922b..bf29d8d56744 100644 --- a/src/crystal/dwarf/abbrev.cr +++ b/src/crystal/dwarf/abbrev.cr @@ -218,7 +218,7 @@ module Crystal # Extensions for multi-file compression (.dwz) # http://www.dwarfstd.org/ShowIssue.php?issue=120604.1 - GNurefalt = 0x1f20 + Gnurefalt = 0x1f20 GnustrpAlt = 0x1f21 end From 9313062e26c8174f6bae06cfa70e3f2f5dbe59ad Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:30 -0400 Subject: [PATCH 28/52] spelling: hexadecimal Signed-off-by: Josh Soref --- src/compiler/crystal/syntax/lexer.cr | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compiler/crystal/syntax/lexer.cr b/src/compiler/crystal/syntax/lexer.cr index 181b80371d30..9d6b75a0246f 100644 --- a/src/compiler/crystal/syntax/lexer.cr +++ b/src/compiler/crystal/syntax/lexer.cr @@ -2456,7 +2456,7 @@ module Crystal def consume_non_braced_unicode_escape codepoint = 0 4.times do - hex_value = char_to_hex(next_char) { expected_hexacimal_character_in_unicode_escape } + hex_value = char_to_hex(next_char) { expected_hexadecimal_character_in_unicode_escape } codepoint = 16 * codepoint + hex_value end if 0xD800 <= codepoint <= 0xDFFF @@ -2483,17 +2483,17 @@ module Crystal found_space = true break else - expected_hexacimal_character_in_unicode_escape + expected_hexadecimal_character_in_unicode_escape end else - hex_value = char_to_hex(char) { expected_hexacimal_character_in_unicode_escape } + hex_value = char_to_hex(char) { expected_hexadecimal_character_in_unicode_escape } codepoint = 16 * codepoint + hex_value found_digit = true end end if !found_digit - expected_hexacimal_character_in_unicode_escape + expected_hexadecimal_character_in_unicode_escape elsif codepoint > 0x10FFFF raise "invalid unicode codepoint (too large)" elsif 0xD800 <= codepoint <= 0xDFFF @@ -2513,7 +2513,7 @@ module Crystal codepoint end - def expected_hexacimal_character_in_unicode_escape + def expected_hexadecimal_character_in_unicode_escape raise "expected hexadecimal character in unicode escape" end From e41d2dda348def46f131500e087d39920840dc7e Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:31 -0400 Subject: [PATCH 29/52] spelling: html Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06479363682c..44089cf31ed2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4398,7 +4398,7 @@ * `HTTP::Client`: added a constructor with an `URI` argument (thanks @plukevdh) * `String`: `sub` and `gsub` now understand backreferences (thanks @bjmllr) * `Random`: added `Random#rand(Float64)` and `Random#rand(Range(Float, Float))` (thanks @AlexWayfer) -* `HTML`: `HTLM.escape` includes more characters (thanks @Ryuuzakis) +* `HTML`: `HTML.escape` includes more characters (thanks @Ryuuzakis) * Added `TypeNode.class` method in macros (thanks @waterlink) * `run` inside macros now also work with absolute paths (useful when used with `__DIR__`) * Added docs for `Math` and `StaticArray` (thanks @Zavydiel, @HeleneMyr) From 6e9febfdc0ba70b2dece2f282c1515a162938545 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Tue, 3 May 2022 12:47:58 -0400 Subject: [PATCH 30/52] spelling: if Signed-off-by: Josh Soref --- src/io/overlapped.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/overlapped.cr b/src/io/overlapped.cr index 297972884055..f1eed904a42a 100644 --- a/src/io/overlapped.cr +++ b/src/io/overlapped.cr @@ -75,7 +75,7 @@ module IO::Overlapped bytes end - # Returns false the the operation timed out + # Returns `false` if the operation timed out. def schedule_overlapped(timeout : Time::Span?, line = __LINE__) : Bool Crystal::EventLoop.wait_completion(timeout.try(&.total_milliseconds) || LibC::INFINITE) end From 1c9004170360040f88c8af1ffc44c918154cc04d Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:32 -0400 Subject: [PATCH 31/52] spelling: inspired Signed-off-by: Josh Soref --- src/string/grapheme/grapheme.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string/grapheme/grapheme.cr b/src/string/grapheme/grapheme.cr index 1e8974c91893..3d79330d4731 100644 --- a/src/string/grapheme/grapheme.cr +++ b/src/string/grapheme/grapheme.cr @@ -191,7 +191,7 @@ class String # # The rules are graphically displayed in a table on https://www.unicode.org/Public/13.0.0/ucd/auxiliary/GraphemeBreakTest.html # - # The implementation is insipred by https://github.com/JuliaStrings/utf8proc/blob/462093b3924c7491defc67fda4bc7a27baf9b088/utf8proc.c#L261 + # The implementation is inspired by https://github.com/JuliaStrings/utf8proc/blob/462093b3924c7491defc67fda4bc7a27baf9b088/utf8proc.c#L261 def self.break?(lbc : Property, tbc : Property) : Bool return true if lbc.start? # GB1 return false if lbc.cr? && tbc.lf? # GB3 From 583ea6a82f1455e4173da9fd7021cf27c81318b8 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:34 -0400 Subject: [PATCH 32/52] spelling: interpreted Signed-off-by: Josh Soref --- src/compiler/crystal/interpreter/multidispatch.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/interpreter/multidispatch.cr b/src/compiler/crystal/interpreter/multidispatch.cr index 9ca11a5abc5a..af26d63b4b9f 100644 --- a/src/compiler/crystal/interpreter/multidispatch.cr +++ b/src/compiler/crystal/interpreter/multidispatch.cr @@ -1,7 +1,7 @@ require "./repl" require "../semantic/main_visitor" -# Non-interprted Crystal does multidispatch by essentially +# Non-interpreted Crystal does multidispatch by essentially # inlining `is_a?` calls and performing the appropriate casting # and calling. # From a5722a4b304c3291c89a90a3de398b5d266e9f82 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:35 -0400 Subject: [PATCH 33/52] spelling: interpreter Signed-off-by: Josh Soref --- src/compiler/crystal/interpreter/compiler.cr | 2 +- src/compiler/crystal/interpreter/value.cr | 2 +- src/crystal/scheduler.cr | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/crystal/interpreter/compiler.cr b/src/compiler/crystal/interpreter/compiler.cr index 7f72d8b8e66d..2edb974d8f8d 100644 --- a/src/compiler/crystal/interpreter/compiler.cr +++ b/src/compiler/crystal/interpreter/compiler.cr @@ -2553,7 +2553,7 @@ class Crystal::Repl::Compiler < Crystal::Visitor index, type = local_var.index, local_var.type pointerof_var(index, node: node) in ClosuredVar - node.raise "BUG: missing interpter out closured var" + node.raise "BUG: missing interpreter out closured var" end when InstanceVar compile_pointerof_ivar(node, exp.name) diff --git a/src/compiler/crystal/interpreter/value.cr b/src/compiler/crystal/interpreter/value.cr index 2b95e146d586..349dff00f78b 100644 --- a/src/compiler/crystal/interpreter/value.cr +++ b/src/compiler/crystal/interpreter/value.cr @@ -2,7 +2,7 @@ require "./repl" # A value produced by the interpreter, essentially # a pointer to some data coupled with type information. -# Based on the type we know how to interprter the data in `pointer`. +# Based on the type we know how to interpreter the data in `pointer`. struct Crystal::Repl::Value getter pointer : Pointer(UInt8) getter type : Type diff --git a/src/crystal/scheduler.cr b/src/crystal/scheduler.cr index cd40054ce286..3d7059999b0a 100644 --- a/src/crystal/scheduler.cr +++ b/src/crystal/scheduler.cr @@ -101,7 +101,7 @@ class Crystal::Scheduler current, @current = @current, fiber {% if flag?(:interpreted) %} - # TODO: ideally we could set this in the interprter if the + # TODO: ideally we could set this in the interpreter if the # @context had a pointer back to the fiber. # I also wonder why this isn't done always like that instead of in asm. current.@context.resumable = 1 From 8f91153b32d9d7934a7ab79602ee6c00bfda8bb6 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:33 -0400 Subject: [PATCH 34/52] spelling: intrinsic Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44089cf31ed2..e66dc43a2ec0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -292,7 +292,7 @@ - `crystal i`, a Crystal interpreter ([#11159](https://github.com/crystal-lang/crystal/pull/11159), thanks @asterite) - Implement FFI bindings ([#11475](https://github.com/crystal-lang/crystal/pull/11475), thanks @straight-shoota) - Add `Crystal::Loader` ([#11434](https://github.com/crystal-lang/crystal/pull/11434), [#11662](https://github.com/crystal-lang/crystal/pull/11662), thanks @straight-shoota, @HertzDevil) -- Mark `bswap32` instrinsic with interpreter primitive annotation ([#11582](https://github.com/crystal-lang/crystal/pull/11582), thanks @rymiel) +- Mark `bswap32` intrinsic with interpreter primitive annotation ([#11582](https://github.com/crystal-lang/crystal/pull/11582), thanks @rymiel) - Split interpreter specs into separate files ([#11578](https://github.com/crystal-lang/crystal/pull/11578), thanks @straight-shoota) - Workaround for GC issues in interpreter specs ([#11634](https://github.com/crystal-lang/crystal/pull/11634), thanks @straight-shoota) From fa6e32c4807b825f39a6597e5717750c3a4d3122 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:38:59 -0400 Subject: [PATCH 35/52] spelling: nonexistent Signed-off-by: Josh Soref --- spec/std/file_utils_spec.cr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/std/file_utils_spec.cr b/spec/std/file_utils_spec.cr index aeda85a99ced..aa32b03fd5f3 100644 --- a/spec/std/file_utils_spec.cr +++ b/spec/std/file_utils_spec.cr @@ -294,7 +294,7 @@ describe "FileUtils" do end end - it "doesn't return error on non existing file" do + it "doesn't return error on nonexistent file" do with_tempfile("rm_rf-nonexistent") do |path| test_with_string_and_path(path) do |arg| FileUtils.rm_rf(arg).should be_nil @@ -302,7 +302,7 @@ describe "FileUtils" do end end - it "doesn't return error on non existing files" do + it "doesn't return error on nonexistent files" do with_tempfile("rm_rf-nonexistent") do |path1| path2 = File.join(path1, "a") test_with_string_and_path(path1, path2) do |*args| @@ -468,7 +468,7 @@ describe "FileUtils" do end end - it "tests rmdir with an non existing path" do + it "tests rmdir with an nonexistent path" do with_tempfile("rmdir-nonexistent") do |path| test_with_string_and_path(path) do |arg| expect_raises(File::NotFoundError, "Unable to remove directory: '#{path.inspect_unquoted}'") do @@ -478,7 +478,7 @@ describe "FileUtils" do end end - it "tests rmdir with multiple non existing path" do + it "tests rmdir with multiple nonexistent path" do with_tempfile("rmdir-nonexistent") do |path| test_with_string_and_path("#{path}1", "#{path}2") do |*args| expect_raises(File::NotFoundError, "Unable to remove directory: '#{path.inspect_unquoted}1'") do @@ -514,7 +514,7 @@ describe "FileUtils" do end end - it "tests rm with non existing path" do + it "tests rm with nonexistent path" do with_tempfile("rm-nonexistent") do |path| test_with_string_and_path(path) do |arg| expect_raises(File::NotFoundError, "Error deleting file: '#{path.inspect_unquoted}'") do @@ -536,7 +536,7 @@ describe "FileUtils" do end end - it "tests rm with some non existing paths" do + it "tests rm with some nonexistent paths" do with_tempfile("rm-nonexistent1", "rm-nonexistent2") do |path1, path2| test_with_string_and_path(path1, path2) do |arg1, arg2| File.write(path1, "") From 50a4fbc48078c31e2494adc67ba00ab57a2ad001 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:38 -0400 Subject: [PATCH 36/52] spelling: opening Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e66dc43a2ec0..05811255cd1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1389,7 +1389,7 @@ - Run side effects for class var with constant initializer. ([#10010](https://github.com/crystal-lang/crystal/pull/10010), thanks @asterite) - Fix `VaList` and disable `va_arg` for AArch64. ([#9422](https://github.com/crystal-lang/crystal/pull/9422), thanks @jhass) - Fix cache corrupted when compilation is cancelled. ([#9558](https://github.com/crystal-lang/crystal/pull/9558), thanks @waj) -- Consider `select` as an openning keyword in macros. ([#9624](https://github.com/crystal-lang/crystal/pull/9624), thanks @asterite) +- Consider `select` as an opening keyword in macros. ([#9624](https://github.com/crystal-lang/crystal/pull/9624), thanks @asterite) - Use function attribute `frame-pointer`. ([#9361](https://github.com/crystal-lang/crystal/pull/9361), thanks @kubo39) - Make missing `__crystal_raise_overflow` error more clear. ([#9686](https://github.com/crystal-lang/crystal/pull/9686), thanks @3n-k1) - Forbid calls with both block arg and block. ([#10026](https://github.com/crystal-lang/crystal/pull/10026), thanks @HertzDevil) From c2028add4b4e49006f273c539563c0ad5ece747d Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:39 -0400 Subject: [PATCH 37/52] spelling: overriding Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05811255cd1d..1591811a04d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4782,7 +4782,7 @@ * Added `Pointer#clear` and use it to clear an `Array`'s values when doing `pop` and other shrinking methods. * Added `BigInt#to_s(base)`, `BigInt::cast` and bit operators (thanks @Exilor) * Allow invoking methods on a union class as long as all types in the union have it. -* Allow specifying a def's return type. The compiler checks the return type only for that def for now (not for subclasses overrding the method). The return type appears in the documentation. +* Allow specifying a def's return type. The compiler checks the return type only for that def for now (not for subclasses overriding the method). The return type appears in the documentation. * Allow constants and computed constants for a StaticArray length. * Allow class vars in enums. * Allow private and protected defs in enums. From 9546ed42927f82f7599553a9f1d050f894b1a892 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:40 -0400 Subject: [PATCH 38/52] spelling: potentially Signed-off-by: Josh Soref --- src/compiler/crystal/interpreter/interpreter.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/interpreter/interpreter.cr b/src/compiler/crystal/interpreter/interpreter.cr index 3604c104b5c1..863d4e8d5e8c 100644 --- a/src/compiler/crystal/interpreter/interpreter.cr +++ b/src/compiler/crystal/interpreter/interpreter.cr @@ -38,7 +38,7 @@ class Crystal::Repl::Interpreter real_frame_index : Int32, # This is a bit hacky, but... # Right now, when we produce an OverflowError we do it directly - # in the instruction that potentitally produces the overflow. + # in the instruction that potentially produces the overflow. # When we do that, the backtrace that is produced in that case # is incorrect because the backtrace computing logic assumes # an all call frames are, well, calls. But in this case it could From 650b123dacd82e7878847d5e2c7bf9f9e5d232a9 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:40 -0400 Subject: [PATCH 39/52] spelling: purposes Signed-off-by: Josh Soref --- src/compiler/crystal/interpreter/instructions.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/interpreter/instructions.cr b/src/compiler/crystal/interpreter/instructions.cr index 78b121625d1a..e374b4301b19 100644 --- a/src/compiler/crystal/interpreter/instructions.cr +++ b/src/compiler/crystal/interpreter/instructions.cr @@ -3,7 +3,7 @@ require "./repl" # This is the list of every VM instruction. # # An instruction consists of: -# - a name/opcode: the name is only for debugging purpsoes, in the bytecode +# - a name/opcode: the name is only for debugging purposes, in the bytecode # (bytes) it's just a number (a byte) # - operands: (default: []) values in the bytecode following the opcode. # For example a `pop` instruction has an operand that tells it how many From c313e738496ebf608f3e1a8821d921a28fd80312 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:41 -0400 Subject: [PATCH 40/52] spelling: reachable Signed-off-by: Josh Soref --- src/compiler/crystal/tools/context.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/crystal/tools/context.cr b/src/compiler/crystal/tools/context.cr index a9e3a29be9d3..a0dc20aaa3fb 100644 --- a/src/compiler/crystal/tools/context.cr +++ b/src/compiler/crystal/tools/context.cr @@ -68,7 +68,7 @@ module Crystal end end - class RechableVisitor < Visitor + class ReachableVisitor < Visitor @visited_typed_defs : Set(Def) def initialize(@context_visitor : Crystal::ContextVisitor) @@ -154,7 +154,7 @@ module Crystal if @def_with_yield @context = Hash(String, Type).new - result.node.accept(RechableVisitor.new(self)) + result.node.accept(ReachableVisitor.new(self)) end # TODO should apply only if user is really in some of the nodes of the main expressions From 3dc95d475ee60a4bce4f3b46838f06d3de76bad5 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:43 -0400 Subject: [PATCH 41/52] spelling: regarding Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1591811a04d9..4ad640892543 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3643,7 +3643,7 @@ ## Misc - The platform-specific parts of `File` and `IO::FileDescriptor` were moved to `Crystal::System`, as part of preparation for the Windows port. ([#5333](https://github.com/crystal-lang/crystal/pull/5333), [#5553](https://github.com/crystal-lang/crystal/pull/5553), [#5622](https://github.com/crystal-lang/crystal/pull/5622) thanks @RX14) - The platform-specific parts of `Dir` were moved to `Crystal::System`, as part of preparation for the Windows port. ([#5447](https://github.com/crystal-lang/crystal/pull/5447), thanks @RX14) -- Incremental contributions regaring Windows support. ([#5422](https://github.com/crystal-lang/crystal/pull/5422), [#5524](https://github.com/crystal-lang/crystal/pull/5524), [#5533](https://github.com/crystal-lang/crystal/pull/5533), [#5538](https://github.com/crystal-lang/crystal/pull/5538), [#5539](https://github.com/crystal-lang/crystal/pull/5539), [#5580](https://github.com/crystal-lang/crystal/pull/5580), [#5947](https://github.com/crystal-lang/crystal/pull/5947) thanks @RX14 and @straight-shoota) +- Incremental contributions regarding Windows support. ([#5422](https://github.com/crystal-lang/crystal/pull/5422), [#5524](https://github.com/crystal-lang/crystal/pull/5524), [#5533](https://github.com/crystal-lang/crystal/pull/5533), [#5538](https://github.com/crystal-lang/crystal/pull/5538), [#5539](https://github.com/crystal-lang/crystal/pull/5539), [#5580](https://github.com/crystal-lang/crystal/pull/5580), [#5947](https://github.com/crystal-lang/crystal/pull/5947) thanks @RX14 and @straight-shoota) - The build on OpenBSD was fixed. ([#5387](https://github.com/crystal-lang/crystal/pull/5387), thanks @wmoxam) - Add support for FreeBSD 12 (64-bit inodes). ([#5199](https://github.com/crystal-lang/crystal/pull/5199), thanks @myfreeweb) - Scripts and makefiles now depend on `sh` instead of `bash` for greater portability. ([#5468](https://github.com/crystal-lang/crystal/pull/5468), thanks @j8r) From 33d48ef122b71bc8986239226ee0de00e0ea75ef Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:43 -0400 Subject: [PATCH 42/52] spelling: regex Signed-off-by: Josh Soref --- samples/egrep.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/egrep.cr b/samples/egrep.cr index b73943137ed0..9dd3b3cdb873 100644 --- a/samples/egrep.cr +++ b/samples/egrep.cr @@ -2,7 +2,7 @@ if ARGV.empty? abort "Usage: cat somefile | egrep 'some'" end -regx = Regex.new(ARGV[0]) +regex = Regex.new(ARGV[0]) while str = STDIN.gets - STDOUT.print(str) if str =~ regx + STDOUT.print(str) if str =~ regex end From 729060edcf8fe944e1989df8676ac6d56b64ac51 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:40:02 -0400 Subject: [PATCH 43/52] spelling: request Signed-off-by: Josh Soref --- src/http/client.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/client.cr b/src/http/client.cr index ea212a89898a..dfedce519434 100644 --- a/src/http/client.cr +++ b/src/http/client.cr @@ -609,7 +609,7 @@ class HTTP::Client response end - # Executes a request request and yields an `HTTP::Client::Response` to the block. + # Executes a request and yields an `HTTP::Client::Response` to the block. # The response will have its body as an `IO` accessed via `HTTP::Client::Response#body_io`. # # ``` From a6254fc734eb61d48117460079ad4485e82ce8a0 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:45 -0400 Subject: [PATCH 44/52] spelling: room Signed-off-by: Josh Soref --- src/compiler/crystal/interpreter/interpreter.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/interpreter/interpreter.cr b/src/compiler/crystal/interpreter/interpreter.cr index 863d4e8d5e8c..4a39399bc4b3 100644 --- a/src/compiler/crystal/interpreter/interpreter.cr +++ b/src/compiler/crystal/interpreter/interpreter.cr @@ -241,7 +241,7 @@ class Crystal::Repl::Interpreter # variables for the current call frame begin. stack_bottom = @stack - # Shift stack to leave roomm for local vars. + # Shift stack to leave room for local vars. # Previous runs that wrote to local vars would have those values # written to @stack already (or property migrated thanks to `migrate_local_vars`) stack_bottom_after_local_vars = stack_bottom + @local_vars.max_bytesize From 031ef7e48739cb4cdf433433b573825822c0c1cb Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:47 -0400 Subject: [PATCH 45/52] spelling: several Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ad640892543..4c380e4cbb88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4571,7 +4571,7 @@ * Added `HTTP::Cookies` (thanks @netfeed) * Added `Tuple#reverse` (thanks @jhass) * Added `Number#clamp` (thanks @technorama) -* Added serveral socket options (thanks @technorama) +* Added several socket options (thanks @technorama) * Added `WebSocket.open` (thanks @kumpelblase2) * Added `Enum.flags` macro * Added support for sending chunked content in HTTP server (thanks @bcardiff) From 8ad77d80d3aaf3bbc0196310c6fae6eda0f18c8e Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:46 -0400 Subject: [PATCH 46/52] spelling: strict Signed-off-by: Josh Soref --- spec/std/base64_spec.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/std/base64_spec.cr b/spec/std/base64_spec.cr index a0fd3d6bc885..47c8c3665750 100644 --- a/spec/std/base64_spec.cr +++ b/spec/std/base64_spec.cr @@ -157,7 +157,7 @@ describe "Base64" do end end - describe "scrict" do + describe "strict" do it "encode" do assert_prints base64_strict_encode("Now is the time for all good coders\nto learn Crystal"), "Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhcm4gQ3J5c3RhbA==" From 69b4bc61b0ef8265fb4d1f72571dc8cd93a4a8f1 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:47 -0400 Subject: [PATCH 47/52] spelling: support Signed-off-by: Josh Soref --- src/compiler/crystal/interpreter/interpreter.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/interpreter/interpreter.cr b/src/compiler/crystal/interpreter/interpreter.cr index 4a39399bc4b3..f58f7fab9151 100644 --- a/src/compiler/crystal/interpreter/interpreter.cr +++ b/src/compiler/crystal/interpreter/interpreter.cr @@ -1169,7 +1169,7 @@ class Crystal::Repl::Interpreter interpreter = Interpreter.new(self, compiled_def, stack_bottom, block_level) while @pry - # TODO: supoort multi-line expressions + # TODO: support multi-line expressions print "pry> " line = gets From ac8ed503efc9fb750e60ab56d6325940ba6b0d4b Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:48 -0400 Subject: [PATCH 48/52] spelling: switch Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c380e4cbb88..73dc56947998 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4932,7 +4932,7 @@ * Added `Regex.escape`. * Added `String#scan`. * Added `-e` switch to spec, to run specs that match a pattern. -* Added `--fail-fast` swtich to spec. +* Added `--fail-fast` switch to spec. * Added `HTTPClient#basic_auth`. * Added `DeclareVar`, `Def` and `Arg` macro methods. * Added `Time` and `TimeSpan` structs. `TimeWithZone` will come later. From a11c3611a094ca949fae2191688dfce357323195 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:49 -0400 Subject: [PATCH 49/52] spelling: timeout Signed-off-by: Josh Soref --- src/compiler/crystal/tools/doc/html/js/_navigator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/tools/doc/html/js/_navigator.js b/src/compiler/crystal/tools/doc/html/js/_navigator.js index 181092749cf7..92d01b2e8e26 100644 --- a/src/compiler/crystal/tools/doc/html/js/_navigator.js +++ b/src/compiler/crystal/tools/doc/html/js/_navigator.js @@ -43,7 +43,7 @@ Navigator = function(sidebar, searchInput, list, leaveSearchScope){ var go = function() { if (!self.moveTimeout) return; self.move(upwards); - self.moveTimout = setTimeout(go, 600); + self.moveTimeout = setTimeout(go, 600); }; self.moveTimeout = setTimeout(go, 800);*/ } From 92ab02136932d742fec90d89e8a20ddf8266a316 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:50 -0400 Subject: [PATCH 50/52] spelling: uniquely Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73dc56947998..54f30b091051 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4774,7 +4774,7 @@ * Added `crystal init` to quickly create a skeleton library or application (thanks @waterlink) * Added `--emit` flag to the compiler. Now you can easily see the generated LLVM IR, LLVM bitcode, assembly and object files. * Added `--no-color` flag to suppress color output, useful for editor tools. -* Added macro vars: `%var` and `%var{x, y}` create uniqely named variables inside macros. +* Added macro vars: `%var` and `%var{x, y}` create uniquely named variables inside macros. * Added [typed splats](https://github.com/crystal-lang/crystal/issues/291). * Added `Iterator` and many methods that return iterators, like `Array#each`, `Hash#each`, `Int#times`, `Int#step`, `String#each_char`, etc. * Added `sprintf` and improved `String#%` to support floats and float formatting. From c311d78d54ace29eebc2a4f9bfb30a3c9c6d7828 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:37:53 -0400 Subject: [PATCH 51/52] spelling: with Signed-off-by: Josh Soref --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54f30b091051..38ef4c0c4f60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -844,7 +844,7 @@ - Fix handling of arithmetic overflow in `BigDecimal#div`. ([#10628](https://github.com/crystal-lang/crystal/pull/10628), thanks @kellydanma) - Clarify behaviour of unsafe `Float`-to-number conversions. ([#10631](https://github.com/crystal-lang/crystal/pull/10631), thanks @HertzDevil) - Fix return type restriction for `Number#humanize` overload. ([#10633](https://github.com/crystal-lang/crystal/pull/10633), thanks @HertzDevil) -- Fix `printf` float with with many digits. ([#10719](https://github.com/crystal-lang/crystal/pull/10719), thanks @straight-shoota) +- Fix `printf` float with many digits. ([#10719](https://github.com/crystal-lang/crystal/pull/10719), thanks @straight-shoota) - Add `BigDecimal`'s missing rounding modes. ([#10798](https://github.com/crystal-lang/crystal/pull/10798), thanks @HertzDevil) - Add support for using big rational `#**` with unsigned ints. ([#10887](https://github.com/crystal-lang/crystal/pull/10887), thanks @stakach) - Add overflow detection to `BigFloat#to_i64` and `#to_u64`. ([#10630](https://github.com/crystal-lang/crystal/pull/10630), thanks @HertzDevil) From a9b9cc227eaf3378eae72c6ed6a83b3711f651c2 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 1 May 2022 18:07:50 -0400 Subject: [PATCH 52/52] spelling: workaround Signed-off-by: Josh Soref --- src/socket/addrinfo.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket/addrinfo.cr b/src/socket/addrinfo.cr index 8e6a43539fae..adda532b3d4f 100644 --- a/src/socket/addrinfo.cr +++ b/src/socket/addrinfo.cr @@ -67,7 +67,7 @@ class Socket raise Socket::ConnectError.from_os_error("Error connecting to '#{domain}:#{service}'", value.os_error) else {% if flag?(:win32) && compare_versions(Crystal::LLVM_VERSION, "13.0.0") < 0 %} - # FIXME: Workardound for https://github.com/crystal-lang/crystal/issues/11047 + # FIXME: Workaround for https://github.com/crystal-lang/crystal/issues/11047 array = StaticArray(UInt8, 0).new(0) {% end %}