Skip to content

Commit c7e3ae0

Browse files
authored
Update static-files.md
It is not neccessary to use UseStaticAssets, so documentation must say "The parameterless MapStaticAssets" -
1 parent 88cefea commit c7e3ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/fundamentals/static-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The default web app templates call the <xref:Microsoft.AspNetCore.Builder.Static
6262

6363
[!code-csharp[](~/fundamentals/static-files/samples/9.x/StaticFilesSample/Program.cs?name=snippet&highlight=15)]
6464

65-
The parameterless `UseStaticFiles` method overload marks the files in [web root](xref:fundamentals/index#web-root) as servable. The following markup references `wwwroot/images/MyImage.jpg`:
65+
The parameterless `MapStaticAssets` method overload marks the files in [web root](xref:fundamentals/index#web-root) as servable. The following markup references `wwwroot/images/MyImage.jpg`:
6666

6767
```html
6868
<img src="~/images/MyImage.jpg" class="img" alt="My image" />

0 commit comments

Comments
 (0)