base64: backticks for code in documentation

This commit is contained in:
kud1ing 2013-09-26 07:57:26 +02:00 committed by Huon Wilson
parent d798e00337
commit d964f79998

View File

@ -13,19 +13,19 @@ use std::str;
/// Available encoding character sets
pub enum CharacterSet {
/// The standard character set (uses '+' and '/')
/// The standard character set (uses `+` and `/`)
Standard,
/// The URL safe character set (uses '-' and '_')
/// The URL safe character set (uses `-` and `_`)
UrlSafe
}
/// Contains configuration parameters for to_base64
/// Contains configuration parameters for `to_base64`.
pub struct Config {
/// Character set to use
char_set: CharacterSet,
/// True to pad output with '=' characters
/// True to pad output with `=` characters
pad: bool,
/// Some(len) to wrap lines at len, None to disable line wrapping
/// `Some(len)` to wrap lines at `len`, `None` to disable line wrapping
line_length: Option<uint>
}