Skip to content

Commit d1cf36a

Browse files
authored
Merge pull request #2097 from tk0miya/fix_typo
Fix typos
2 parents b37a991 + 67b4a61 commit d1cf36a

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

sig/ancestor_graph.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module RBS
2-
# AncestorGraph is a utility class that helps iterating through ancestors and decendants of a class/module
2+
# AncestorGraph is a utility class that helps iterating through ancestors and descendants of a class/module
33
#
44
# ```ruby
55
# graph = AncestorGraph.new(env: env, ancestor_builder: ancestor_builder)

sig/definition.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module RBS
2727
# Annotations given to the overload associated to the method type
2828
attr_reader overload_annotations: Array[AST::Annotation]
2929

30-
# Concatnation of `member_annotations` and `overload_annotations`
30+
# Concatenation of `member_annotations` and `overload_annotations`
3131
attr_reader annotations: Array[AST::Annotation]
3232

3333
def initialize: (type: MethodType, member: method_member, defined_in: TypeName, implemented_in: TypeName?, ?overload_annotations: Array[AST::Annotation]) -> void

sig/definition_builder.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ module RBS
157157
# Returns a substitution that corresponds to type application
158158
#
159159
# ```
160-
# tapp_subst(`::Array`, [`::Integer`]) # => Subsitution.build([:Elem], [`::Integer`])
160+
# tapp_subst(`::Array`, [`::Integer`]) # => Substitution.build([:Elem], [`::Integer`])
161161
# ```
162162
#
163163
def tapp_subst: (TypeName, Array[Types::t]) -> Substitution

sig/environment.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ module RBS
233233
def normalize_type_name?: (TypeName) -> (TypeName | nil | false)
234234

235235
# Normalize the type name or raises an error
236-
#
236+
#
237237
def normalize_type_name!: (TypeName) -> TypeName
238238

239239
# Returns a normalized module/class name or a type name with a normalized namespace

sig/type_alias_dependency.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module RBS
2-
# TypeAliasDependency calculates the dependnecies between type aliases
2+
# TypeAliasDependency calculates the dependencies between type aliases
33
#
44
# The dependencies are normalized automatically.
55
#
@@ -12,7 +12,7 @@ module RBS
1212
#
1313
attr_reader direct_dependencies: Hash[TypeName, Set[TypeName]]
1414

15-
# A hash table from type alias name to a hash name with keys of transitive dependnecies
15+
# A hash table from type alias name to a hash name with keys of transitive dependencies
1616
#
1717
# The source type name and dependencies are normalized.
1818
#

sig/type_alias_regularity.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module RBS
7171
def initialize: (env: Environment) -> void
7272

7373
# Returns `Diagnostic` instance if the alias type is nonregular.
74-
# Regurns `nil` if the alias type is regular.
74+
# Returns `nil` if the alias type is regular.
7575
#
7676
# Normalizes the given type name automatically.
7777
#

sig/type_param.rbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module RBS
7575

7676
def to_s: () -> String
7777

78-
# Validates TypeParams if it refers another optiional type params
78+
# Validates TypeParams if it refers another optional type params
7979
#
8080
# * Returns array of TypeParam objects that refers other optional type params
8181
# * Returns `nil` if all type params are valid
@@ -86,7 +86,7 @@ module RBS
8686
#
8787
def self.application: (Array[TypeParam], Array[Types::t]) -> Substitution?
8888

89-
# Returns an array of type args, that fills ommited types with the defaults
89+
# Returns an array of type args, that fills omitted types with the defaults
9090
#
9191
# ```rbs
9292
# interface _Foo[T, S = untyped]
@@ -102,7 +102,7 @@ module RBS
102102
# _Foo[String, Integer, untyped] # => _Foo[String, Integer, untyped] (Keeping extra args)
103103
# ```
104104
#
105-
# Note that it allows iinvalid arities, returning the `args` immediately.
105+
# Note that it allows invalid arities, returning the `args` immediately.
106106
#
107107
def self.normalize_args: (Array[TypeParam], Array[Types::t]) -> Array[Types::t]
108108
end

sig/vendorer.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module RBS
2424
# vendor/rbs/minitest-1.2.3 => Will include `minitest` library RBSs.
2525
# ```
2626
#
27-
# The vendorerd RBSs will be loaded through :dir source.
27+
# The vendored RBSs will be loaded through :dir source.
2828
#
2929
# ```rb
3030
# loader = RBS::EnvironmentLoader.new(core_root: nil, repository: RBS::Repository.new(no_stdlib: true))

0 commit comments

Comments
 (0)