mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
chore: add missing return type (#4595)
This commit is contained in:
parent
f57ac69735
commit
6e662cf978
@ -260,7 +260,7 @@ export function diff<T>(A: T[], B: T[]): Array<DiffResult<T>> {
|
||||
* @param A Actual string
|
||||
* @param B Expected string
|
||||
*/
|
||||
export function diffstr(A: string, B: string) {
|
||||
export function diffstr(A: string, B: string): DiffResult<string>[] {
|
||||
function unescape(string: string): string {
|
||||
// unescape invisible characters.
|
||||
// ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#escape_sequences
|
||||
|
Loading…
Reference in New Issue
Block a user