Fix Sorbet/ group offenses in docs example code

- T::Sig hasn't been needed in every file for a long time.
This commit is contained in:
Issy Long 2024-01-23 21:26:14 +00:00
parent 1fe968e937
commit 6485324b18
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -12,8 +12,6 @@ The `sig` method is used to annotate method signatures. Here's a simple example:
```ruby ```ruby
class MyClass class MyClass
extend T::Sig
sig { params(name: String).returns(String) } sig { params(name: String).returns(String) }
def my_method(name) def my_method(name)
"Hello, #{name}!" "Hello, #{name}!"