Skip to content

Commit 494c5cc

Browse files
committed
Fix keyed sample
1 parent af3eeba commit 494c5cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/.net8/keyed-service/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ string GetServiceKey()
2323
var key = GetServiceKey();
2424
var greeting = provider.GetRequiredKeyedService<IGreeting>(key);
2525

26-
return Results.Content("""
26+
return Results.Content($$"""
2727
<html>
2828
<body>
29-
{{ greeting.Message }}}
29+
{{ greeting.Message }}
3030
</body>
3131
</html>
3232
""", "text/html");

0 commit comments

Comments
 (0)