about summary refs log tree commit diff
path: root/src/libcore/str
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2015-01-06 10:16:49 +1300
committerNick Cameron <ncameron@mozilla.com>2015-01-06 14:20:48 +1300
commite0684e876954ad5a713e6f985570162cedcae8df (patch)
treed6f5720dca6438855b491cf1fb0959c78a38b6c2 /src/libcore/str
parent48f50e1e98691d74427e23e82694f528b3fb4d56 (diff)
downloadrust-e0684e876954ad5a713e6f985570162cedcae8df.tar.gz
rust-e0684e876954ad5a713e6f985570162cedcae8df.zip
Fallout
Diffstat (limited to 'src/libcore/str')
-rw-r--r--src/libcore/str/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index d069744f8da..74fac6b7678 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -1140,7 +1140,7 @@ impl Str for str {
     fn as_slice<'a>(&'a self) -> &'a str { self }
 }
 
-impl<'a, Sized? S> Str for &'a S where S: Str {
+impl<'a, S: ?Sized> Str for &'a S where S: Str {
     #[inline]
     fn as_slice(&self) -> &str { Str::as_slice(*self) }
 }