Skip to content

Commit

Permalink
Fix minor non-comment typos
Browse files Browse the repository at this point in the history
There are plenty of comment related typos
  • Loading branch information
shmup authored and usev6 committed Feb 5, 2023
1 parent dbbd515 commit 0e99334
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lib/MoarVM/Spesh.rakumod
Expand Up @@ -474,7 +474,7 @@ class MoarVM::Spesh {

if self.bails.sort: -*.value -> @bails {
@lines.push: @bails > $head
?? "$head most occuring ops that prevented JITting of code"
?? "$head most occurring ops that prevented JITting of code"
!! "Ops that prevented JITting of code";
@lines.push: "-" x 80;
@lines.push: sprintf("%4d: %s", .value, .key)
Expand Down
2 changes: 1 addition & 1 deletion src/Raku/ast/variable-declaration.rakumod
Expand Up @@ -202,7 +202,7 @@ class RakuAST::VarDeclaration::Simple is RakuAST::Declaration is RakuAST::Implic
str :$scope, RakuAST::SemiList :$shape) {
my $obj := nqp::create(self);
if nqp::chars($name) < 2 {
nqp::die('Cannot use RakuAST::VarDeclaration::Simple to declare an anonymous varialbe; use RakuAST::VarDeclaration::Anonymous');
nqp::die('Cannot use RakuAST::VarDeclaration::Simple to declare an anonymous variable; use RakuAST::VarDeclaration::Anonymous');
}
nqp::bindattr_s($obj, RakuAST::VarDeclaration::Simple, '$!name', $name);
nqp::bindattr_s($obj, RakuAST::Declaration, '$!scope', $scope);
Expand Down
6 changes: 3 additions & 3 deletions src/core.c/Junction.pm6
Expand Up @@ -582,7 +582,7 @@ multi sub infix:<~>(Junction:D $a, Str:D $b) {
}

multi sub infix:<~>(Junction:D \a, Junction:D \b) {
my int $mergable = Junction.INFIX-TWO(my $a = a, my $b = b);
my int $mergeable = Junction.INFIX-TWO(my $a = a, my $b = b);
my \astor := nqp::getattr(nqp::decont($a),Junction,'$!eigenstates');
my \bstor := nqp::getattr(nqp::decont($b),Junction,'$!eigenstates');
my int $aelems = nqp::elems(astor);
Expand All @@ -594,7 +594,7 @@ multi sub infix:<~>(Junction:D \a, Junction:D \b) {
Junction,
'$!eigenstates',
nqp::if(
$mergable,
$mergeable,
nqp::list,
nqp::setelems(nqp::list,$aelems)
)
Expand All @@ -610,7 +610,7 @@ multi sub infix:<~>(Junction:D \a, Junction:D \b) {
)),
(my int $j = -1),
nqp::if(
$mergable,
$mergeable,
nqp::while( # merge eigenstates
nqp::islt_i(++$j,$belems),
nqp::unless(
Expand Down
4 changes: 2 additions & 2 deletions src/vm/jvm/runtime/org/raku/rakudo/Binder.java
Expand Up @@ -470,7 +470,7 @@ else if (Ops.istype_nd(decontValue, gcx.PositionalBindFailover, tc) != 0) {
/* Try to figure out the most helpful name for the expected. */
SixModelObject expectedType = null;
SixModelObject postConstraints = param.get_attribute_boxed(tc, gcx.Parameter,
"$!post_contraints", HINT_post_constraints);
"$!post_constraints", HINT_post_constraints);
if (postConstraints != null) {
SixModelObject consType = postConstraints.at_pos_boxed(tc, 0);
expectedType = (Ops.istype(consType, gcx.Code, tc) != 0)
Expand Down Expand Up @@ -688,7 +688,7 @@ else if ((paramFlags & SIG_ELEM_HASH_SIGIL) != 0) {
/* Handle any constraint types (note that they may refer to the parameter by
* name, so we need to have bound it already). */
SixModelObject postConstraints = param.get_attribute_boxed(tc, gcx.Parameter,
"$!post_contraints", HINT_post_constraints);
"$!post_constraints", HINT_post_constraints);
if (postConstraints != null) {
long numConstraints = postConstraints.elems(tc);
for (long i = 0; i < numConstraints; i++) {
Expand Down
4 changes: 2 additions & 2 deletions t/12-rakuast/statement-phaser.rakutest
Expand Up @@ -34,7 +34,7 @@ subtest 'BEGIN phaser producing a literal expression works' => {
for EVAL($ast), EVAL($deparsed);
}

subtest 'Block with CATCH/default handles exception and evalutes to Nil' => {
subtest 'Block with CATCH/default handles exception and evaluates to Nil' => {
my $handled;

# { CATCH { default { $handled++ } }; die "oops" }
Expand Down Expand Up @@ -83,7 +83,7 @@ CODE
$handled = 0;

is-deeply EVAL($it), Nil,
"$type: block with CATCH/default handles exception, evalutes to Nil";
"$type: block with CATCH/default handles exception, evaluates to Nil";
is-deeply $handled, 1, "$type: the exception handler ran once";
is $!, 'oops', "$type: \$! in the outer scope has the exception";
}
Expand Down
4 changes: 2 additions & 2 deletions t/12-rakuast/statement-prefix.rakutest
Expand Up @@ -350,7 +350,7 @@ subtest 'try statement prefix with throwing block handles the exception' => {
is-deeply $!.Str, 'another day', '$! is populated with the exception';
}

subtest 'start statement prefix with expression evalutes to Promise' => {
subtest 'start statement prefix with expression evaluates to Promise' => {
# start 111
ast RakuAST::StatementPrefix::Start.new(
RakuAST::Statement::Expression.new(
Expand All @@ -365,7 +365,7 @@ subtest 'start statement prefix with expression evalutes to Promise' => {
}
}

subtest 'start statement prefix with block evalutes to Promise' => {
subtest 'start statement prefix with block evaluates to Promise' => {
# start { 137 }
ast RakuAST::StatementPrefix::Start.new(
RakuAST::Block.new(
Expand Down
2 changes: 1 addition & 1 deletion tools/lib/NQP/Config/Rakudo.pm
Expand Up @@ -39,7 +39,7 @@ sub configure_nqp {
if ( defined $passed_backends && $nqp_backend ne $passed_backends ) {
$self->sorry(
"Passed value to --backends ($passed_backends) is overwritten ",
"by the one infered by --with-nqp ($nqp_backend)"
"by the one inferred by --with-nqp ($nqp_backend)"
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion tools/releasable/Akefile
Expand Up @@ -563,7 +563,7 @@ task ‘wikipedia’, { # Step ⓴ (rakudo release guide)
},
);
my $announce-io = $RAKUDO-PATH.add(“docs/announce/$version-rakudo.md”);
die ‘Weird annoncement’ unless slurp($announce-io).lines.head ~~ /Release \s (‘#’\d+)/;
die ‘Weird announcement’ unless slurp($announce-io).lines.head ~~ /Release \s (‘#’\d+)/;
my $release-id = ~$0;
my $date = run(‘git’, ‘log’, ‘-1’, ‘--format=%ai’, $version-rakudo,
:out, :cwd($RAKUDO-PATH)).out.words.head;
Expand Down
2 changes: 1 addition & 1 deletion tools/templates/Makefile.in
Expand Up @@ -7,7 +7,7 @@ LAUNCHER = @default_prefix@-runner-default
all:@for_backends( @backend_prefix@-all)@ $(LAUNCHER)

install: @for_backends(@backend_prefix@-install )@ $(LAUNCHER)-install
@echo(+++ Rakudo installed succesfully!)@
@echo(+++ Rakudo installed successfully!)@

clean: @for_backends(@backend_prefix@-clean )@
$(RM_F) perl6@runner_suffix@
Expand Down
2 changes: 1 addition & 1 deletion tools/update-passing-test-data.pl
Expand Up @@ -42,7 +42,7 @@ =head1 DESCRIPTION
GetOptions( \%options, 'help!', 'backend=s@', );

$options{backend} = [
map { die "Unknwon backend '$_'" unless exists $backend_bin{$_}; $_ }
map { die "Unknown backend '$_'" unless exists $backend_bin{$_}; $_ }
split( /,/, join( ",", @{ $options{backend} // [qw<moar>] } ) )
];

Expand Down

0 comments on commit 0e99334

Please sign in to comment.