@@ -527,16 +527,16 @@ private static char TryGetArgAsChar(object arg)
527527 }
528528
529529 /// <summary>
530- /// Read a character and search forward for the next occurence of that character.
530+ /// Read a character and search forward for the next occurrence of that character.
531531 /// If an argument is specified, search forward (or backward if negative) for the
532- /// nth occurence .
532+ /// nth occurrence .
533533 /// </summary>
534534 public static void CharacterSearch ( ConsoleKeyInfo ? key = null , object arg = null )
535535 {
536- int occurence = arg as int ? ?? 1 ;
537- if ( occurence < 0 )
536+ int occurrence = arg as int ? ?? 1 ;
537+ if ( occurrence < 0 )
538538 {
539- CharacterSearchBackward ( key , - occurence ) ;
539+ CharacterSearchBackward ( key , - occurrence ) ;
540540 return ;
541541 }
542542
@@ -550,31 +550,31 @@ public static void CharacterSearch(ConsoleKeyInfo? key = null, object arg = null
550550 {
551551 if ( _singleton . _buffer [ i ] == toFind )
552552 {
553- occurence -= 1 ;
554- if ( occurence == 0 )
553+ occurrence -= 1 ;
554+ if ( occurrence == 0 )
555555 {
556556 _singleton . MoveCursor ( i ) ;
557557 break ;
558558 }
559559 }
560560 }
561- if ( occurence > 0 )
561+ if ( occurrence > 0 )
562562 {
563563 Ding ( ) ;
564564 }
565565 }
566566
567567 /// <summary>
568- /// Read a character and search backward for the next occurence of that character.
568+ /// Read a character and search backward for the next occurrence of that character.
569569 /// If an argument is specified, search backward (or forward if negative) for the
570- /// nth occurence .
570+ /// nth occurrence .
571571 /// </summary>
572572 public static void CharacterSearchBackward ( ConsoleKeyInfo ? key = null , object arg = null )
573573 {
574- int occurence = arg as int ? ?? 1 ;
575- if ( occurence < 0 )
574+ int occurrence = arg as int ? ?? 1 ;
575+ if ( occurrence < 0 )
576576 {
577- CharacterSearch ( key , - occurence ) ;
577+ CharacterSearch ( key , - occurrence ) ;
578578 return ;
579579 }
580580
@@ -588,8 +588,8 @@ public static void CharacterSearchBackward(ConsoleKeyInfo? key = null, object ar
588588 {
589589 if ( _singleton . _buffer [ i ] == toFind )
590590 {
591- occurence -= 1 ;
592- if ( occurence == 0 )
591+ occurrence -= 1 ;
592+ if ( occurrence == 0 )
593593 {
594594 _singleton . MoveCursor ( i ) ;
595595 return ;
0 commit comments