Unverified Commit 4292752f authored by マルコメ's avatar マルコメ Committed by GitHub

chore: fix wrong path of comments (#71682)

## Description
At #44405, many files moved.
Then sync comment paths.
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 5abd1176
...@@ -70,7 +70,7 @@ pub async fn pathname_for_path( ...@@ -70,7 +70,7 @@ pub async fn pathname_for_path(
Ok(Vc::cell(path)) Ok(Vc::cell(path))
} }
// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/shared/lib/router/utils/get-asset-path-from-route.ts // Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/router/utils/get-asset-path-from-route.ts
// TODO(alexkirsz) There's no need to create an intermediate string here (and // TODO(alexkirsz) There's no need to create an intermediate string here (and
// below), we should instead return an `impl Display`. // below), we should instead return an `impl Display`.
pub fn get_asset_prefix_from_pathname(pathname: &str) -> String { pub fn get_asset_prefix_from_pathname(pathname: &str) -> String {
...@@ -83,7 +83,7 @@ pub fn get_asset_prefix_from_pathname(pathname: &str) -> String { ...@@ -83,7 +83,7 @@ pub fn get_asset_prefix_from_pathname(pathname: &str) -> String {
} }
} }
// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/shared/lib/router/utils/get-asset-path-from-route.ts // Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/router/utils/get-asset-path-from-route.ts
pub fn get_asset_path_from_pathname(pathname: &str, ext: &str) -> String { pub fn get_asset_path_from_pathname(pathname: &str, ext: &str) -> String {
format!("{}{}", get_asset_prefix_from_pathname(pathname), ext) format!("{}{}", get_asset_prefix_from_pathname(pathname), ext)
} }
......
// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/client/dev/error-overlay/websocket.ts // Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/client/dev/error-overlay/websocket.ts
let source: WebSocket; let source: WebSocket;
const eventCallbacks: ((msg: WebSocketMessage) => void)[] = []; const eventCallbacks: ((msg: WebSocketMessage) => void)[] = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment