about summary refs log tree commit diff
path: root/library/std/src/sys/os_str/wtf8.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sys/os_str/wtf8.rs')
-rw-r--r--library/std/src/sys/os_str/wtf8.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/os_str/wtf8.rs b/library/std/src/sys/os_str/wtf8.rs
index 5174ea65d0c..4207a2db635 100644
--- a/library/std/src/sys/os_str/wtf8.rs
+++ b/library/std/src/sys/os_str/wtf8.rs
@@ -92,7 +92,7 @@ impl Buf {
     }
 
     #[inline]
-    pub fn from_string(s: String) -> Buf {
+    pub const fn from_string(s: String) -> Buf {
         Buf { inner: Wtf8Buf::from_string(s) }
     }