Skip to content

Commit 7270b73

Browse files
authored
Merge pull request #2295 from rhiroe/update-module-name
Remove `nil` from the return type of `Module#name` and instead add the `%a{implicitly-returns-nil}` annotation
2 parents e389107 + 7cdcfe1 commit 7270b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/module.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ class Module < Object
11641164
# -->
11651165
# Returns the name of the module *mod*. Returns `nil` for anonymous modules.
11661166
#
1167-
def name: () -> String?
1167+
def name: %a{implicitly-returns-nil} () -> String
11681168

11691169
# <!--
11701170
# rdoc-file=eval.c

0 commit comments

Comments
 (0)