Skip to content

Commit b890b10

Browse files
committed
fix spelling
1 parent c5079bd commit b890b10

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

src/NQP/Optimizer.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class NQP::Optimizer {
395395
}
396396
}
397397

398-
# If we reach here, unknown. Poision.
398+
# If we reach here, unknown. Poison.
399399
self.poison_lowering();
400400
return $node;
401401
}),

src/QRegex/P6Regex/Actions.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ class QRegex::P6Regex::Actions is HLL::Actions {
530530
my $qast;
531531
my $name := ~$<identifier>;
532532
if $name eq 'c' {
533-
# codepoint boundaries alway match in
533+
# codepoint boundaries always match in
534534
# our current Unicode abstraction level
535535
$qast := 0;
536536
}

src/core/NQPRoutine.nqp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ my knowhow NQPRoutine {
235235
# Initialize dispatcher state.
236236
my @possibles;
237237

238-
# Go thorugh candidates.
238+
# Go through candidates.
239239
my int $type_mismatch;
240240
my int $type_check_count;
241241
my int $i;
@@ -260,13 +260,13 @@ my knowhow NQPRoutine {
260260
}
261261
}
262262

263-
# Check if it's admissable by arity.
263+
# Check if it's admissible by arity.
264264
if $num_args < $cur_candidate<min_arity> || $num_args > $cur_candidate<max_arity> {
265265
$cur_idx++;
266266
next;
267267
}
268268

269-
# Check if it's admissable by type.
269+
# Check if it's admissible by type.
270270
$type_check_count := $cur_candidate<num_types> > $num_args
271271
?? $num_args
272272
!! $cur_candidate<num_types>;
@@ -297,7 +297,7 @@ my knowhow NQPRoutine {
297297
next;
298298
}
299299

300-
# If we get here, it's an admissable candidate; add to list. */
300+
# If we get here, it's an admissible candidate; add to list. */
301301
nqp::push(@possibles, $cur_candidate);
302302
$cur_idx++;
303303
}

src/how/NQPClassHOW.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ knowhow NQPClassHOW {
336336
if nqp::elems(@immediate_parents) == 1 {
337337
@result := compute_c3_mro(@immediate_parents[0]);
338338
} else {
339-
# Build merge list of lineraizations of all our parents, add
339+
# Build merge list of linearizations of all our parents, add
340340
# immediate parents and merge.
341341
my @merge_list;
342342
for @immediate_parents {

src/vm/js/Compiler.nqp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class QAST::CompilerJS does DWIMYNameMangling does SerializeOnce {
293293
0;
294294
}
295295

296-
# turns a list of arguments for a call into a js code according to our most generall calling convention
296+
# turns a list of arguments for a call into a js code according to our most general calling convention
297297
# $args is the list of QAST::Node arguments
298298
# returns a Chunk containing either a comma separated list of arguments or an expression that evaluates to a array of arguments
299299

@@ -627,7 +627,7 @@ class QAST::CompilerJS does DWIMYNameMangling does SerializeOnce {
627627
}
628628

629629

630-
# It's more usefull for me during this development to emit partial code instead of quiting
630+
# It's more useful for me during this development to emit partial code instead of quitting
631631
method NYI($msg) {
632632
if $!nyi eq 'ignore' {
633633
}
@@ -1424,7 +1424,7 @@ class QAST::CompilerJS does DWIMYNameMangling does SerializeOnce {
14241424

14251425
my @pre;
14261426
{
1427-
# We create this context so that dependecies are loaded relative to this file
1427+
# We create this context so that dependencies are loaded relative to this file
14281428
my $*CTX := 'ctxWithPath';
14291429
@pre.push(
14301430
"var ctxWithPath = new nqp.Ctx(null, null, null, null);\n"

src/vm/js/Operations.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ class QAST::OperationsJS {
717717

718718
add_simple_op('settypefinalize', $T_VOID, [$T_OBJ, $T_INT]);
719719

720-
# TODO - implement and bechmark different ways of preventing the try/catch from murdering performance
720+
# TODO - implement and benchmark different ways of preventing the try/catch from murdering performance
721721
add_op('handle', :!inlinable, sub ($comp, $node, :$want, :$cps) {
722722
# TODO CPS
723723
my @children := nqp::clone($node.list());

src/vm/jvm/QAST/Compiler.nqp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ for <if unless with without> -> $op_name {
896896
}
897897
}
898898

899-
# Add final label and load result if neded.
899+
# Add final label and load result if needed.
900900
$il.append($end_lbl);
901901
if $res_temp {
902902
$il.append(JAST::Instruction.new( :op(load_ins($res_type)), $res_temp ));
@@ -1447,7 +1447,7 @@ my $call_codegen := sub ($qastcomp, $node) {
14471447
# Ensure we have a thing to invoke.
14481448
nqp::die("A 'call' node must have a name or at least one child") unless +@($node) >= 1;
14491449

1450-
# Proces arguments, making sure first one is an object (since that is
1450+
# Process arguments, making sure first one is an object (since that is
14511451
# the thing to invoke).
14521452
my @argstuff := process_args_onto_stack($qastcomp, @($node), $il, :inv_first);
14531453
my $cs_idx := @argstuff[0];
@@ -5073,7 +5073,7 @@ class QAST::CompilerJAST {
50735073
$il.append($LCMP);
50745074
$il.append(JAST::Instruction.new( :op('ifgt'), %*REG<fail> ));
50755075

5076-
# Compile the regex body itself; if we make it thorugh it, we go to
5076+
# Compile the regex body itself; if we make it through it, we go to
50775077
# the end and are finished.
50785078
$il.append(self.regex_jast($node));
50795079
$il.append(JAST::Instruction.new( :op('goto'), $endlabel ));
@@ -5209,7 +5209,7 @@ class QAST::CompilerJAST {
52095209
$*STACK.obtain($il, $fail_res);
52105210
$il.append($POP);
52115211

5212-
# Evaluate to the curosr.
5212+
# Evaluate to the cursor.
52135213
$il.append($endlabel);
52145214
$il.append(JAST::Instruction.new( :op('aload'), %*REG<cur> ));
52155215
result($il, $RT_OBJ)

src/vm/moar/QAST/QASTCompilerMAST.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ my class MASTCompilerInstance {
995995
# when we enter a QAST::Stmt, the contextual will be cloned, and the locals of
996996
# newly declared QAST::Vars of local scope inside the Stmt will be stashed here,
997997
# so they can be released at the end of the QAST::Stmt in which they were
998-
# declared. Inability to declare duplicate names is still enfoced, and types are
998+
# declared. Inability to declare duplicate names is still enforced, and types are
999999
# still enforced.
10001000
my %*STMTTEMPS := nqp::hash();
10011001
my $*INSTMT := 0;

src/vm/moar/QAST/QASTOperationsMAST.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class QAST::MASTOperations {
208208
nqp::push(@release_kinds, $arg_kind);
209209
}
210210

211-
# put the arg exression's generation code in the instruction list
211+
# put the arg expression's generation code in the instruction list
212212
nqp::splice(@all_ins, $arg.instructions, +@all_ins, 0)
213213
unless $constant_operand;
214214
if @deconts[$arg_num] &&

0 commit comments

Comments
 (0)