Skip to content

Commit

Permalink
Fix an error in the doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrubeck committed Mar 25, 2016
1 parent 1cb52ba commit 02fea8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@


/// pad a string to the left to ``pad`` length with spaces
/// If str.len() is less than pad, then the string is returned verbatim
/// If str.len() is not less than pad, then the string is returned verbatim
pub fn left_pad(s: &str, pad: usize) -> String
{
left_pad_char(s, pad, ' ')
}

/// pad a string to the left to ``pad`` length with ``padchar``
/// If str.len() is less than pad, then the string is returned verbatim
/// If str.len() is not less than pad, then the string is returned verbatim
pub fn left_pad_char(s: &str, pad: usize, padchar: char) -> String
{
let mut out = String::new();
Expand Down

0 comments on commit 02fea8b

Please sign in to comment.