mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34: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.
|
/// 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 {
|
pub fn diff(orig_text: &str, edit_text: &str) -> String {
|
||||||
if orig_text == edit_text {
|
if orig_text == edit_text {
|
||||||
return String::new();
|
return String::new();
|
||||||
|
|
Loading…
Add table
Reference in a new issue