From c55fd5f6f0a41bb61548f346d01cbf1084fe1a73 Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Tue, 24 Dec 2024 21:30:43 -0800 Subject: [PATCH 1/2] Fix ambiguous reference to terminal middleware (#34405) --- aspnetcore/fundamentals/middleware/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/fundamentals/middleware/index.md b/aspnetcore/fundamentals/middleware/index.md index 7cb4afef2090..a20172d38934 100644 --- a/aspnetcore/fundamentals/middleware/index.md +++ b/aspnetcore/fundamentals/middleware/index.md @@ -262,7 +262,7 @@ The following table shows the requests and responses from `http://localhost:1234 | `localhost:1234` | `Hello from non-Map delegate.` | | `localhost:1234/?branch=main` | `Branch used = main` | - also branches the request pipeline based on the result of the given predicate. Unlike with `MapWhen`, this branch is rejoined to the main pipeline if it doesn't short-circuit or contain a terminal middleware: + also branches the request pipeline based on the result of the given predicate. Unlike with `MapWhen`, this branch is rejoined to the main pipeline if it doesn't contain a terminal middleware: [!code-csharp[](~/fundamentals/middleware/index/snapshot/Chain60/ProgramUseWhen.cs?highlight=4-5)] From 4758fb2e2950271c6c1c4999fcd07bdc46d94f0e Mon Sep 17 00:00:00 2001 From: Kpollock1 <53992987+Kpollock1@users.noreply.github.com> Date: Tue, 31 Dec 2024 21:21:17 +0200 Subject: [PATCH 2/2] Fix minor typo (#34423) * Fix minor typo Remove duplicated "such as" in sentence "... static assets in an app 'such as' HTML..." * Update aspnetcore/tutorials/razor-pages/razor-pages-start.md --------- Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> --- aspnetcore/tutorials/razor-pages/razor-pages-start.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/tutorials/razor-pages/razor-pages-start.md b/aspnetcore/tutorials/razor-pages/razor-pages-start.md index b35c93619d3b..e59b36a723f2 100644 --- a/aspnetcore/tutorials/razor-pages/razor-pages-start.md +++ b/aspnetcore/tutorials/razor-pages/razor-pages-start.md @@ -180,7 +180,7 @@ The following code enables various [Middleware](xref:fundamentals/middleware/ind * `app.UseRouting();` : Adds route matching to the middleware pipeline. For more information, see . * `app.UseAuthorization();` : Authorizes a user to access secure resources. This app doesn't use authorization, therefore this line could be removed. * `app.MapRazorPages();`: Configures endpoint routing for Razor Pages. -* `app.MapStaticAssets();` : Optimize the delivery of static assets in an app such as such as HTML, CSS, images, and JavaScript to be served. For more information, see . +* `app.MapStaticAssets();` : Optimize the delivery of static assets in an app, such as HTML, CSS, images, and JavaScript. For more information, see . * `app.Run();` : Runs the app. ## Troubleshooting with the completed sample