From a5580affc0bce16dd637ed90c3bea51c7a6a2590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mate=CC=8Cj=20Kas=CC=8Cpar=20Jira=CC=81sek?= Date: Sun, 16 May 2021 15:42:40 +0200 Subject: [PATCH] Improve comments for PathBuilder functions --- Sources/PathBuilder/PathBuilder.swift | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Sources/PathBuilder/PathBuilder.swift b/Sources/PathBuilder/PathBuilder.swift index e34dd68..5aba0c4 100644 --- a/Sources/PathBuilder/PathBuilder.swift +++ b/Sources/PathBuilder/PathBuilder.swift @@ -21,27 +21,26 @@ public struct PathBuilder { component ?? EmptySubpath() } - /// With buildEither(second:), enables support for 'if-else' and 'switch' + /// With `buildEither(second:)`, enables support for 'if-else' and 'switch' /// statements by folding conditional results into a single result. public static func buildEither(first: PathComponent) -> PathComponent { first } - /// With buildEither(first:), enables support for 'if-else' and 'switch' + /// With `buildEither(first:)`, enables support for 'if-else' and 'switch' /// statements by folding conditional results into a single result. public static func buildEither(second: PathComponent) -> PathComponent { second } - /// This will be called on the partial result of an 'if - /// #available' block to allow the result builder to erase type - /// information. + /// This will be called on the partial result of an 'if #available' + /// block to allow the result builder to erase type information. public static func buildLimitedAvailability(_ component: PathComponent) -> PathComponent { component } /// This will be called on the partial result from the outermost - /// block statement to produce the final returned result Path. + /// block statement to produce the final returned result `Path`. public static func buildFinalResult(_ component: PathComponent) -> Path { Path { path in component.add(to: &path)