1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-31 13:07:46 +00:00

Change tab to spaces

This commit is contained in:
ssirai 2014-10-05 10:09:52 +09:00
parent ffd0685d19
commit 681022a2ca
4 changed files with 21 additions and 21 deletions

View file

@ -10,5 +10,5 @@
*/ */
pub fn uumain(_: Vec<String>) -> int { pub fn uumain(_: Vec<String>) -> int {
1 1
} }

View file

@ -66,13 +66,13 @@ fn sysv_sum(mut reader: Box<Reader>) -> (uint, u16) {
} }
fn open(name: &str) -> IoResult<Box<Reader>> { fn open(name: &str) -> IoResult<Box<Reader>> {
match name { match name {
"-" => Ok(box stdin_raw() as Box<Reader>), "-" => Ok(box stdin_raw() as Box<Reader>),
_ => { _ => {
let f = try!(File::open(&Path::new(name))); let f = try!(File::open(&Path::new(name)));
Ok(box f as Box<Reader>) Ok(box f as Box<Reader>)
} }
} }
} }
pub fn uumain(args: Vec<String>) -> int { pub fn uumain(args: Vec<String>) -> int {

View file

@ -10,5 +10,5 @@
*/ */
pub fn uumain(_: Vec<String>) -> int { pub fn uumain(_: Vec<String>) -> int {
0 0
} }

View file

@ -62,20 +62,20 @@ pub fn uumain(args: Vec<String>) -> int {
print!(" print!("
SIZE is an integer with an optional prefix and optional unit. SIZE is an integer with an optional prefix and optional unit.
The available units (K, M, G, T, P, E, Z, and Y) use the following format: The available units (K, M, G, T, P, E, Z, and Y) use the following format:
'KB' => 1000 (kilobytes) 'KB' => 1000 (kilobytes)
'K' => 1024 (kibibytes) 'K' => 1024 (kibibytes)
'MB' => 1000*1000 (megabytes) 'MB' => 1000*1000 (megabytes)
'M' => 1024*1024 (mebibytes) 'M' => 1024*1024 (mebibytes)
'GB' => 1000*1000*1000 (gigabytes) 'GB' => 1000*1000*1000 (gigabytes)
'G' => 1024*1024*1024 (gibibytes) 'G' => 1024*1024*1024 (gibibytes)
SIZE may also be prefixed by one of the following to adjust the size of each SIZE may also be prefixed by one of the following to adjust the size of each
file based on its current size: file based on its current size:
'+' => extend by '+' => extend by
'-' => reduce by '-' => reduce by
'<' => at most '<' => at most
'>' => at least '>' => at least
'/' => round down to multiple of '/' => round down to multiple of
'%' => round up to multiple of '%' => round up to multiple of
"); ");
} else if matches.opt_present("version") { } else if matches.opt_present("version") {
println!("truncate 1.0.0"); println!("truncate 1.0.0");