From 2451eb9ded966abfb49d9864c383cfe50389a7b7 Mon Sep 17 00:00:00 2001 From: Trotyl Yu Date: Wed, 17 Aug 2016 10:38:23 +0800 Subject: [PATCH] docs(router): Explanation in code should be comment (#10790) --- modules/@angular/router/src/router.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/@angular/router/src/router.ts b/modules/@angular/router/src/router.ts index 6ecd69e274..6adcc44aad 100644 --- a/modules/@angular/router/src/router.ts +++ b/modules/@angular/router/src/router.ts @@ -222,8 +222,8 @@ export class Router { * // you can collapse static segments like this (this works only with the first passed-in value): * router.createUrlTree(['/team/33/user', userId]); * - * If the first segment can contain slashes, and you do not want the router to split it, you - * can do the following: + * // If the first segment can contain slashes, and you do not want the router to split it, you + * // can do the following: * * router.createUrlTree([{segmentPath: '/one/two'}]); *