about summary refs log tree commit diff
path: root/src/libextra/base64.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libextra/base64.rs')
-rw-r--r--src/libextra/base64.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libextra/base64.rs b/src/libextra/base64.rs
index 373bebeec71..b8f3a267d2d 100644
--- a/src/libextra/base64.rs
+++ b/src/libextra/base64.rs
@@ -15,7 +15,10 @@ use core::prelude::*;
 use core::str;
 use core::vec;
 
+/// A trait for converting a value to base64 encoding.
 pub trait ToBase64 {
+    /// Converts the value of `self` to a base64 value, returning the owned
+    /// string
     fn to_base64(&self) -> ~str;
 }
 
@@ -112,6 +115,7 @@ impl<'self> ToBase64 for &'self str {
     }
 }
 
+#[allow(missing_doc)]
 pub trait FromBase64 {
     fn from_base64(&self) -> ~[u8];
 }