mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
parent
e5489446d5
commit
d70ba324fe
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ use std::fmt::Write as _;
|
|||
|
||||
/// Print diff of the same file_path, before and after formatting.
|
||||
///
|
||||
/// Diff format is loosely based on Github diff formatting.
|
||||
/// Diff format is loosely based on GitHub diff formatting.
|
||||
pub fn diff(orig_text: &str, edit_text: &str) -> String {
|
||||
if orig_text == edit_text {
|
||||
return String::new();
|
||||
|
|
Loading…
Reference in a new issue