Skip to content

Commit d554850

Browse files
committed
Clarify language
1 parent ab52713 commit d554850

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/ruby_lsp/static_docs.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ module RubyLsp
1414

1515
# A map of keyword => short documentation to be displayed on hover or completion
1616
KEYWORD_DOCS = {
17-
"break" => "Terminates the execution of a block, loop, or method",
17+
"break" => "Terminates the execution of a block or loop",
1818
"case" => "Starts a case expression for pattern matching or multiple condition checking",
19-
"class" => "Defines a class and its methods",
19+
"class" => "Defines a class",
2020
"def" => "Defines a method",
21-
"defined" => "Checks if a constant or method is defined",
21+
"defined" => "Checks if a constant, variable or method is defined",
2222
"else" => "Executes the code in the else block if the condition is false",
2323
"ensure" => "Executes the code in the ensure block regardless of whether an exception is raised or not",
2424
"yield" => "Invokes the passed block with the given arguments",

static_docs/case.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ else
4646
end
4747
```
4848

49-
## Pattern Matching (Ruby 2.7+)
49+
## Pattern Matching
5050

51-
Starting from Ruby 2.7, `case` statements support pattern matching, which provides powerful ways to match and destructure data.
51+
`case` statements support pattern matching, which provides powerful ways to match and destructure data.
5252

5353
```ruby
5454
# Pattern matching with arrays

0 commit comments

Comments
 (0)