]> git.lizzy.rs Git - rust.git/blobdiff - build.rs
Fix incorrect documentation for `unstable_features`
[rust.git] / build.rs
index 3f1c412a7afc2518d057bf4e1dba886969e45f7b..adccd08380716c7c2a8b620abeafc539feef8e67 100644 (file)
--- a/build.rs
+++ b/build.rs
@@ -36,7 +36,7 @@ fn main() {
 fn commit_info() -> String {
     match (channel(), commit_hash(), commit_date()) {
         (channel, Some(hash), Some(date)) => {
-            format!("{} ({} {})", channel, hash.trim_right(), date)
+            format!("{} ({} {})", channel, hash.trim_end(), date)
         }
         _ => String::new(),
     }