From 0d3fa51d1e536f0171a86cd342af3e46d82177cf Mon Sep 17 00:00:00 2001 From: Hanif Ariffin Date: Sat, 20 Nov 2021 17:04:28 +0800 Subject: [PATCH] Add license headers Signed-off-by: Hanif Ariffin --- src/uu/tr/src/operation.rs | 13 ++++++++++--- src/uu/tr/src/unicode_table.rs | 9 +++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/uu/tr/src/operation.rs b/src/uu/tr/src/operation.rs index e22bc4276..775689a20 100644 --- a/src/uu/tr/src/operation.rs +++ b/src/uu/tr/src/operation.rs @@ -1,3 +1,12 @@ +// * This file is part of the uutils coreutils package. +// * +// * (c) Michael Gehring +// * (c) kwantam +// * (c) Sergey "Shnatsel" Davidoff +// * +// * For the full copyright and license information, please view the LICENSE +// * file that was distributed with this source code. + // spell-checker:ignore (strings) anychar combinator Alnum Punct Xdigit alnum punct xdigit cntrl use nom::{ @@ -30,9 +39,7 @@ pub enum BadSequence { impl Display for BadSequence { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - BadSequence::MissingCharClassName => { - writeln!(f, "missing character class name '[::]'") - } + BadSequence::MissingCharClassName => writeln!(f, "missing character class name '[::]'"), BadSequence::MissingEquivalentClassChar => { writeln!(f, "missing equivalence class character '[==]'") } diff --git a/src/uu/tr/src/unicode_table.rs b/src/uu/tr/src/unicode_table.rs index 781e4cdba..98f2a99fb 100644 --- a/src/uu/tr/src/unicode_table.rs +++ b/src/uu/tr/src/unicode_table.rs @@ -1,3 +1,12 @@ +// * This file is part of the uutils coreutils package. +// * +// * (c) Michael Gehring +// * (c) kwantam +// * (c) Sergey "Shnatsel" Davidoff +// * +// * For the full copyright and license information, please view the LICENSE +// * file that was distributed with this source code. + pub static BEL: char = '\u{0007}'; pub static BS: char = '\u{0008}'; pub static HT: char = '\u{0009}';