]> git.lizzy.rs Git - rust.git/blobdiff - src/libtime/lib.rs
Fix minor issues in the documentation of libtime.
[rust.git] / src / libtime / lib.rs
index f52a032961dd96a568628259f8d785e43ff21fbd..98544a1218aad705ae5348d0cc32f137c9aa19eb 100644 (file)
@@ -330,7 +330,7 @@ pub fn strftime(&self, format: &str) -> String {
      * Returns a time string formatted according to RFC 822.
      *
      * local: "Thu, 22 Mar 2012 07:53:18 PST"
-     * utc:   "Thu, 22 Mar 2012 14:53:18 UTC"
+     * utc:   "Thu, 22 Mar 2012 14:53:18 GMT"
      */
     pub fn rfc822(&self) -> String {
         if self.tm_gmtoff == 0_i32 {
@@ -351,7 +351,8 @@ pub fn rfc822z(&self) -> String {
     }
 
     /**
-     * Returns a time string formatted according to ISO 8601.
+     * Returns a time string formatted according to RFC 3999. RFC 3999 is
+     * compatible with ISO 8601.
      *
      * local: "2012-02-22T07:53:18-07:00"
      * utc:   "2012-02-22T14:53:18Z"