Skip to content

Commit d12ee52

Browse files
committed
rename misleading aregument name in BitCarousel #11127
1 parent cd50327 commit d12ee52

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/BlazorUI/Bit.BlazorUI/Components/Lists/Carousel/BitCarousel.razor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ public async Task GoPrev()
122122
}
123123

124124
/// <summary>
125-
/// Navigates to the given carousel item index.
125+
/// Navigates to the given carousel item number.
126126
/// </summary>
127-
public async Task GoTo(int index)
127+
public async Task GoTo(int number)
128128
{
129-
await GotoPage(index - 1);
129+
await GotoPage(number - 1);
130130
}
131131

132132
/// <summary>

src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Lists/Carousel/BitCarouselDemo.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public partial class BitCarouselDemo
208208
{
209209
Name = "GoTo",
210210
Type = "Task",
211-
Description = "Navigates to the given carousel item index.",
211+
Description = "Navigates to the given carousel item number.",
212212
},
213213
new()
214214
{

0 commit comments

Comments
 (0)