separate file for error message function
This commit is contained in:
parent
701941b121
commit
34b16cb5d4
1 changed files with 8 additions and 0 deletions
8
src/erreur.rs
Normal file
8
src/erreur.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
/// Jolie message d'erreur
|
||||
pub fn message_erreur(message: &str) -> String {
|
||||
format!(
|
||||
"\n{sep}\n{msg}\n{sep}\n",
|
||||
sep = "=".repeat(message.len()),
|
||||
msg = message
|
||||
)
|
||||
}
|
Reference in a new issue