[devdocsgjs/main: 1649/1867] Update Rust documentation (1.52.1)




commit d0b63b6036ec7718ca459d66b9120595dfc2dbb7
Author: Simon Legner <Simon Legner gmail com>
Date:   Thu May 13 11:59:48 2021 +0200

    Update Rust documentation (1.52.1)

 lib/docs/scrapers/rust.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/scrapers/rust.rb b/lib/docs/scrapers/rust.rb
index 0ce412ea..8c5f944d 100644
--- a/lib/docs/scrapers/rust.rb
+++ b/lib/docs/scrapers/rust.rb
@@ -3,7 +3,7 @@
 module Docs
   class Rust < UrlScraper
     self.type = 'rust'
-    self.release = '1.51.0'
+    self.release = '1.52.1'
     self.base_url = 'https://doc.rust-lang.org/'
     self.root_path = 'book/index.html'
     self.initial_paths = %w(
@@ -28,6 +28,7 @@ module Docs
 
     options[:fix_urls] = ->(url) do
       url.sub! %r{(#{Rust.base_url}.+/)\z}, '\1index.html'
+      url.sub! "#{Rust.base_url}nightly/", Rust.base_url
       url.sub! '/unicode/u_str', '/unicode/str/'
       url.sub! '/std/std/', '/std/'
       url


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]