Skip to content

Commit cc79f7a

Browse files
authored
Merge pull request #1506 from tk0miya/fix_typo
Fix typos
2 parents 425a9f0 + 944af85 commit cc79f7a

15 files changed

+22
-22
lines changed

lib/steep/type_construction.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2956,7 +2956,7 @@ def synthesize_constant_decl(node, parent_node, constant_name, &block)
29562956
nil
29572957
]
29582958
else
2959-
# No neesting
2959+
# No nesting
29602960
synthesize_constant(node, nil, constant_name, &block)
29612961
end
29622962
end
@@ -4453,7 +4453,7 @@ def for_block(body_node, block_params:, block_param_hint:, block_type_hint:, blo
44534453

44544454
param_types = param_types_hash.each.with_object({}) do |pair, hash| #$ Hash[Symbol, [AST::Types::t, AST::Types::t?]]
44554455
name, type = pair
4456-
# skip unamed arguments `*`, `**` and `&`
4456+
# skip unnamed arguments `*`, `**` and `&`
44574457
next if name.nil?
44584458
hash[name] = [type, nil]
44594459
end

sig/steep/interface/builder.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module Steep
5858
# Returns a shape of given type with respect to Config
5959
#
6060
# * If `self` occurs in the given type, it returns types with `self`
61-
# * If `self` doesn't occur in the given type, it returns type withohut `self`, that is resolved to `config.self_type`
61+
# * If `self` doesn't occur in the given type, it returns type without `self`, that is resolved to `config.self_type`
6262
#
6363
def shape: (AST::Types::t, Config) -> Shape?
6464

sig/steep/interface/method_type.rbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module Steep
5151
# It works when:
5252
#
5353
# * `type1` and `type2` are equal modulo type parameters (`[A] () -> A` | `[B] () -> B` → `[A] () -> A`), or
54-
# * The type parameter occurences are identical (`[A] (::Integer) -> A` | `[B] (::String) -> B` → `[A] (::Integer & ::String) -> A`)
54+
# * The type parameter occurrences are identical (`[A] (::Integer) -> A` | `[B] (::String) -> B` → `[A] (::Integer & ::String) -> A`)
5555
#
5656
# Otherwise it fails (returns `nil`).
5757
#
@@ -69,7 +69,7 @@ module Steep
6969
# It works when:
7070
#
7171
# * `type1` and `type2` are equal modulo type parameters (`[A] () -> A` & `[B] () -> B` → `[A] () -> A`), or
72-
# * The type parameter occurences are identical (`[A] (::Integer) -> A` & `[B] (::String) -> B` → `[A] (::Integer | ::String) -> A`)
72+
# * The type parameter occurrences are identical (`[A] (::Integer) -> A` & `[B] (::String) -> B` → `[A] (::Integer | ::String) -> A`)
7373
#
7474
# Otherwise it fails (returns `nil`).
7575
#
@@ -100,7 +100,7 @@ module Steep
100100
def &: (MethodType other) -> MethodType?
101101

102102
# Returns true if the method accepts one argument, no keyword arguments, and no block
103-
#
103+
#
104104
def accept_one_arg?: () -> bool
105105
end
106106
end

sig/steep/server/custom_methods.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Steep
1616
def self.notification: (params) -> untyped
1717
end
1818

19-
# Notification with parames of a file name and its contents, sent from master to workers
19+
# Notification with params of a file name and its contents, sent from master to workers
2020
#
2121
module FileReset
2222
METHOD: String

sig/steep/server/lsp_formatter.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Steep
99
# * `markup_content` translates a string to `MarkupContent` object
1010
# * `format_hover_content` translates a hover content to Markdown string
1111
# * `format_completion_docs` translates a completion item to a documentation
12-
# * `format_rbs_competion_docs` generates docs for completion item of RBS
12+
# * `format_rbs_completion_docs` generates docs for completion item of RBS
1313
#
1414
module LSPFormatter
1515
include Services

sig/steep/server/target_group_files.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Steep
1616
# Add path
1717
#
1818
# * Returns `true` if the path is under the control of the project.
19-
# * Returns `false` if the path doesn't blong to the project.
19+
# * Returns `false` if the path doesn't belong to the project.
2020
#
2121
def add_path: (Pathname path) -> bool
2222

sig/steep/services/completion_provider.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ module Steep
120120

121121
attr_reader range: Range
122122

123-
attr_reader reeiver_type: AST::Types::t
123+
attr_reader receiver_type: AST::Types::t
124124

125125
attr_reader method_types: Array[RBS::MethodType]
126126

@@ -150,7 +150,7 @@ module Steep
150150

151151
attr_reader range: Range
152152

153-
attr_reader reeiver_type: AST::Types::t
153+
attr_reader receiver_type: AST::Types::t
154154

155155
attr_reader method_types: Array[RBS::MethodType]
156156

sig/steep/services/signature_service.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Steep
55
# 1. RBS files loaded from `EnvironmentLoader` -- usually type signatures of libraries
66
# 2. RBS files managed in editors -- usually type signatures of the development target (app or gem)
77
#
8-
# The files in #2 are managed throuth `#status` and the changes are tracked.
8+
# The files in #2 are managed through `#status` and the changes are tracked.
99
#
1010
class SignatureService
1111
type status = SyntaxErrorStatus | AncestorErrorStatus | LoadedStatus

sig/steep/services/type_check_service.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module Steep
4141

4242
def update_content: (String content) -> SourceFile
4343

44-
# Diagnostics filgered by `ignores`
44+
# Diagnostics filtered by `ignores`
4545
#
4646
def diagnostics: () -> Array[Diagnostic::Ruby::Base]
4747
end

sig/steep/services/type_name_completion.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ module Steep
119119
# Yield type names defined in the environment
120120
#
121121
# * Yields an absolute type name if it is defined in the environment
122-
# * Yields an relative type name if it is imported with `use` declerative
122+
# * Yields an relative type name if it is imported with `use` declarative
123123
#
124124
# Alias classes/modules and types under them are yielded.
125125
#

0 commit comments

Comments
 (0)