Skip to content

Commit e8bfa06

Browse files
committed
Strip the nightly version after reading it
To ensure no unwanted new lines or spaces are included as part of interpolation
1 parent 0c2b72b commit e8bfa06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rakelib/doc.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ namespace :doc do
8181

8282
desc "Generate Rust documentation as JSON"
8383
task :rustdoc do
84-
nightly = File.readlines("NIGHTLY_VERSION").first
84+
nightly = File.readlines("NIGHTLY_VERSION").first.strip
8585
sh <<~CMD
8686
cargo +#{nightly} rustdoc \
8787
--target-dir tmp/doc/target \

0 commit comments

Comments
 (0)