Skip to content

Commit 52b1595

Browse files
authored
Update links (#1810)
Uses the current documentation, relative to "now" rather than a specific version of Ruby.
1 parent d1ddd0f commit 52b1595

44 files changed

Lines changed: 103 additions & 91 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

concepts/arrays/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ a # => [{"cat"=>"feline"}, {}]
5252

5353
Another characteristic of Ruby arrays is that they mix in the [Enumerable][enumerable-module] module, which adds a lot of handy methods to iterate, search, sort, filter, etc. elements of an array.
5454

55-
[enumerable-module]: https://ruby-doc.org/core-2.7.1/Enumerable.html
55+
[enumerable-module]: https://docs.ruby-lang.org/en/master/Enumerable.html
5656
[for-loop]: https://launchschool.com/books/ruby/read/loops_iterators#forloops

concepts/arrays/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ arr.pop #=> 6
8383
arr #=> [1, 2, 3, 4, 5]
8484
```
8585

86-
[enumerable-module]: https://ruby-doc.org/core-2.7.1/Enumerable.html
86+
[enumerable-module]: https://docs.ruby-lang.org/en/master/Enumerable.html

concepts/arrays/links.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"url": "https://ruby-doc.org/core-2.7.1/Enumerable.html",
3+
"url": "https://docs.ruby-lang.org/en/master/Enumerable.html",
44
"description": "enumerable-module"
55
}
66
]

concepts/basics/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Car.new.run
4545

4646
Finally, bear in mind that the `Integer` object holds values that may be defined as one or more (consecutive) digits and its methods support many of the [mathematical operators][integers-docs].
4747

48-
[integers-docs]: https://ruby-doc.org/core-2.7.0/Integer.html
48+
[integers-docs]: https://docs.ruby-lang.org/en/master/Integer.html
4949

5050
~~~~exercism/note
5151
The communication in documentation often will reference instance methods using syntax like `Class#method_name` while class or module level methods are referenced as `Class::method_name`.

concepts/basics/links.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"url": "https://ruby-doc.org/core-2.7.0/Integer.html",
3+
"url": "https://docs.ruby-lang.org/en/master/Integer.html",
44
"description": "integers-docs"
55
}
66
]

concepts/enumeration/about.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,6 @@ words.each { |animal, name| ... }
4949
words.each.with_index { |(animal, name), index| ... }
5050
```
5151

52-
The methods described above are part of the [`Enumerable` module](https://ruby-doc.org/core-2.7.1/Enumerable.html) which is included in `Array`, `Hash` and other classes that require the ability to enumerate.
52+
The methods described above are part of the [`Enumerable` module][enumerable-module] which is included in `Array`, `Hash` and other classes that require the ability to enumerate.
53+
54+
[enumerable-module]: https://docs.ruby-lang.org/en/master/Enumerable.html

concepts/floating-point-numbers/about.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# About
22

3-
A floating-point number is a number with zero or more digits behind the decimal separator. Examples are `4.0`, `0.1`, `3.14`, `-6.4` `16.984025` and `1024.0`. In Ruby, floating-point numbers are implemented through the [Float](https://ruby-doc.org/core-2.7.0/Float.html) class.
3+
A floating-point number is a number with zero or more digits behind the decimal separator. Examples are `4.0`, `0.1`, `3.14`, `-6.4` `16.984025` and `1024.0`. In Ruby, floating-point numbers are implemented through the [Float][Float] class.
44

55
You can find a short introduction to floating-point numbers at [0.30000000000000004.com][0.30000000000000004.com].
66

@@ -51,5 +51,6 @@ end
5151

5252
As you have probably noticed, Ruby has no increment operator (`i++`) like some other languages do. Instead, constructs like `i += 1` (which is equal to `i = i + 1`) can be used.
5353

54+
[Float]: https://docs.ruby-lang.org/en/master/Float.html
5455
[0.30000000000000004.com]: https://0.30000000000000004.com/
5556
[evanw.github.io-float-toy]: https://evanw.github.io/float-toy/
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Loops
22

33
A floating-point number is a number with zero or more digits behind the decimal separator. Examples are `4.0`, `0.1`, `3.14`, `-6.4` `16.984025` and `1024.0`.
4-
In Ruby, floating-point numbers are implemented through the [Float](https://ruby-doc.org/core-2.7.0/Float.html) class.
4+
In Ruby, floating-point numbers are implemented through the [Float][Float] class.
5+
6+
[Float]: https://docs.ruby-lang.org/en/master/Float.html

concepts/floating-point-numbers/links.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"url": "https://ruby-doc.org/core-2.7.0/Float.html",
3+
"url": "https://docs.ruby-lang.org/en/master/Float.html",
44
"description": "Float"
55
},
66
{

concepts/loops/about.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,3 @@ end
4040
```
4141

4242
As you have probably noticed, Ruby has no increment operator (`i++`) like some other languages do. Instead, constructs like `i += 1` (which is equal to `i = i + 1`) can be used.
43-
44-
[0.30000000000000004.com]: https://0.30000000000000004.com/
45-
[evanw.github.io-float-toy]: https://evanw.github.io/float-toy/

0 commit comments

Comments
 (0)