From e0c1c0ad0c7a9958add5073e76fe0f35a6a33a7f Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 1 Sep 2024 19:15:33 +0200 Subject: [PATCH] Fix comments --- CHANGELOG.md | 2 +- lib/grape/endpoint.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff3c7a0fdc..2eda07b1b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ * [#2480](https://github.com/ruby-grape/grape/pull/2480): Fix rescue_from ValidationErrors exception - [@numbata](https://github.com/numbata). * [#2464](https://github.com/ruby-grape/grape/pull/2464): The `length` validator only takes effect for parameters with types that support `#length` method - [@OuYangJinTing](https://github.com/OuYangJinTing). * [#2485](https://github.com/ruby-grape/grape/pull/2485): Add `is:` param to length validator - [@dakad](https://github.com/dakad). -* [#2492](https://github.com/ruby-grape/grape/pull/2492): Fix Grape::Endpoint's inspect method - [@ericproulx](https://github.com/ericproulx). +* [#2492](https://github.com/ruby-grape/grape/pull/2492): Fix `Grape::Endpoint#inspect` method - [@ericproulx](https://github.com/ericproulx). * Your contribution here. ### 2.1.3 (2024-07-13) diff --git a/lib/grape/endpoint.rb b/lib/grape/endpoint.rb index e805a07244..9072ba877c 100644 --- a/lib/grape/endpoint.rb +++ b/lib/grape/endpoint.rb @@ -234,13 +234,13 @@ def equals?(endpoint) (options == endpoint.options) && (inheritable_setting.to_hash == endpoint.inheritable_setting.to_hash) end - # the purpose of this override is solely for stripping internals when an error occurs while calling - # an endpoint through an api. See #https://github.com/ruby-grape/grape/issues/2398 - # Otherwise, it calls super + # The purpose of this override is solely for stripping internals when an error occurs while calling + # an endpoint through an api. See https://github.com/ruby-grape/grape/issues/2398 + # Otherwise, it calls super. def inspect return super unless env - "#{self.class} in `#{route.origin}' endpoint" + "#{self.class} in '#{route.origin}' endpoint" end protected