Skip to content

Commit e70e9fa

Browse files
author
Marukome0743
committed
chore: fix wrong path of util.ts comments
1 parent 96d6a96 commit e70e9fa

File tree

2 files changed

+3
-3
lines changed
  • crates/next-core/src
  • turbopack/crates/turbopack-ecmascript-runtime/js/src/browser/dev/hmr-client

2 files changed

+3
-3
lines changed

crates/next-core/src/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub async fn pathname_for_path(
7070
Ok(Vc::cell(path))
7171
}
7272

73-
// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/shared/lib/router/utils/get-asset-path-from-route.ts
73+
// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/router/utils/get-asset-path-from-route.ts
7474
// TODO(alexkirsz) There's no need to create an intermediate string here (and
7575
// below), we should instead return an `impl Display`.
7676
pub fn get_asset_prefix_from_pathname(pathname: &str) -> String {
@@ -83,7 +83,7 @@ pub fn get_asset_prefix_from_pathname(pathname: &str) -> String {
8383
}
8484
}
8585

86-
// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/shared/lib/router/utils/get-asset-path-from-route.ts
86+
// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/router/utils/get-asset-path-from-route.ts
8787
pub fn get_asset_path_from_pathname(pathname: &str, ext: &str) -> String {
8888
format!("{}{}", get_asset_prefix_from_pathname(pathname), ext)
8989
}

turbopack/crates/turbopack-ecmascript-runtime/js/src/browser/dev/hmr-client/websocket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/client/dev/error-overlay/websocket.ts
1+
// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/client/dev/error-overlay/websocket.ts
22

33
let source: WebSocket;
44
const eventCallbacks: ((msg: WebSocketMessage) => void)[] = [];

0 commit comments

Comments
 (0)