Function
format_four_args
(string: &str, arg1: &str, arg2: &str, arg3: &str, arg4: &str)
Source from the content-addressed store, hash-verified
| 2071 | } |
| 2072 | |
| 2073 | pub fn format_four_args(string: &str, arg1: &str, arg2: &str, arg3: &str, arg4: &str) -> String { |
| 2074 | string |
| 2075 | .replacen("{}", arg1, 1) |
| 2076 | .replacen("{}", arg2, 1) |
| 2077 | .replacen("{}", arg3, 1) |
| 2078 | .replacen("{}", arg4, 1) |
| 2079 | } |
| 2080 | |
| 2081 | // ---------------------------------------------------------- |
| 2082 | // Private functions |
Tested by
no test coverage detected