Skip to content

Commit d0b63b6

Browse files
committed
Update Rust documentation (1.52.1)
1 parent 6f3c116 commit d0b63b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/docs/scrapers/rust.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Docs
44
class Rust < UrlScraper
55
self.type = 'rust'
6-
self.release = '1.51.0'
6+
self.release = '1.52.1'
77
self.base_url = 'https://doc.rust-lang.org/'
88
self.root_path = 'book/index.html'
99
self.initial_paths = %w(
@@ -28,6 +28,7 @@ class Rust < UrlScraper
2828

2929
options[:fix_urls] = ->(url) do
3030
url.sub! %r{(#{Rust.base_url}.+/)\z}, '\1index.html'
31+
url.sub! "#{Rust.base_url}nightly/", Rust.base_url
3132
url.sub! '/unicode/u_str', '/unicode/str/'
3233
url.sub! '/std/std/', '/std/'
3334
url

0 commit comments

Comments
 (0)