Skip to content

Commit

Permalink
add additional comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cedvandenbosch committed Sep 13, 2024
1 parent 8a943f5 commit 48c79cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/go_router/lib/src/path_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ Map<String, String> extractPathParameters(

/// Concatenates two paths.
///
/// e.g: pathA = /a, pathB = c/d, concatenatePaths(pathA, pathB) = /a/c/d.
/// e.g: pathA = /a, pathB = /c/d, concatenatePaths(pathA, pathB) = /a/c/d.
/// or: pathA = a, pathB = c/d, concatenatePaths(pathA, pathB) = /a/c/d.
String concatenatePaths(String parentPath, String childPath) {
final Iterable<String> segments = <String>[
...parentPath.split('/'),
Expand Down

0 comments on commit 48c79cf

Please sign in to comment.