Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Comments in code #28698

Merged
merged 1 commit into from
Aug 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions ruby/basic_ruby/basic_enumerable_methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,15 @@

my_hash.each { |key, value| puts "#{key} is #{value}" }

one is 1
two is 2
#=> one is 1
#=> two is 2
#=> { "one" => 1, "two" => 2}

```

Check failure on line 118 in ruby/basic_ruby/basic_enumerable_methods.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Fenced code blocks should be surrounded by blank lines

ruby/basic_ruby/basic_enumerable_methods.md:118 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md031.md
```ruby

Check failure on line 119 in ruby/basic_ruby/basic_enumerable_methods.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Fenced code blocks should be surrounded by blank lines

ruby/basic_ruby/basic_enumerable_methods.md:119 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```ruby"] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md031.md
my_hash.each { |pair| puts "the pair is #{pair}" }

the pair is ["one", 1]
the pair is ["two", 2]
#=> the pair is ["one", 1]
#=> the pair is ["two", 2]
#=> { "one" => 1, "two" => 2}
```

Expand Down Expand Up @@ -441,7 +442,7 @@
The following questions are an opportunity to reflect on key topics in this lesson. If you can't answer a question, click on it to review the material, but keep in mind you are not expected to memorize or master this knowledge.

- [What does the `#each` method do? What does it return?](#the-each-method)
- [What does the `#each_with_index` method do?](#the-eachwithindex-method)

Check failure on line 445 in ruby/basic_ruby/basic_enumerable_methods.md

View workflow job for this annotation

GitHub Actions / Lint lesson files

Link fragments should be valid

ruby/basic_ruby/basic_enumerable_methods.md:445:3 MD051/link-fragments Link fragments should be valid [Context: "[What does the `#each_with_index` method do?](#the-eachwithindex-method)"] https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md051.md
- [What does the `#map` method do?](#the-map-method)
- [What does the `#select` method do?](#the-select-method)
- [What does the `#reduce` method do?](#the-reduce-method)
Expand Down
Loading