回答編集履歴

1

修正

2018/12/07 12:46

投稿

Zuishin
Zuishin

スコア28660

test CHANGED
@@ -58,13 +58,13 @@
58
58
 
59
59
 
60
60
 
61
- private string IndexToString(int indicies)
61
+ private string IndexToString(int index)
62
62
 
63
63
  {
64
64
 
65
- if (indicies < 1 || indicies > 2) throw new ArgumentException(nameof(indicies));
65
+ if (index < 1 || index > 2) throw new ArgumentException(nameof(index));
66
66
 
67
- return new[] { "りんご", "みかん" }[indicies - 1];
67
+ return new[] { "りんご", "みかん" }[index - 1];
68
68
 
69
69
  }
70
70