From 48c79cf797bd5f7a43172be53e3ece7baef35655 Mon Sep 17 00:00:00 2001 From: cedvandenbosch Date: Fri, 13 Sep 2024 23:35:42 +0200 Subject: [PATCH] add additional comment --- packages/go_router/lib/src/path_utils.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/go_router/lib/src/path_utils.dart b/packages/go_router/lib/src/path_utils.dart index 95123823424c..c68df5c7745e 100644 --- a/packages/go_router/lib/src/path_utils.dart +++ b/packages/go_router/lib/src/path_utils.dart @@ -102,7 +102,8 @@ Map 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 segments = [ ...parentPath.split('/'),