Skip to content

Commit de6693e

Browse files
Merge pull request #2075 from chsanch/fixes
Change terms as suggested in #2015
2 parents 264b941 + d7e2181 commit de6693e

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

doc/Language/glossary.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ L<Sigilless variables|/language/variables#index-entry-\_(sigilless_variables)> a
929929
=head1 Spesh
930930
X<|Spesh>
931931
932-
A functionality of the L<#MoarVM> platform that uses run-time gathered data
932+
A functionality of the L<#MoarVM> platform that uses runtime gathered data
933933
to improve commonly used pieces of L<#bytecode>. It is much like a JIT
934934
compiler, except that those usually output machine code rather than
935935
bytecode.

doc/Language/modules.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ a C<Failure>. The correct way is:
150150
# Use return value to test whether loading succeeded:
151151
(try require Foo) === Nil and say "Failed to load Foo!";
152152
153-
# Or use a run-time symbol lookup with require, to avoid compile-time
153+
# Or use a runtime symbol lookup with require, to avoid compile-time
154154
# package installation:
155155
try require ::('Foo');
156156
if ::('Foo') ~~ Failure {

doc/Language/operators.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ also modify the other.
17791779
X<|smartmatch operator>
17801780
=head2 infix C«~~»
17811781
1782-
The X<smart-match operator> aliases the left-hand side to C<$_>, then evaluates
1782+
The smartmatch operator aliases the left-hand side to C<$_>, then evaluates
17831783
the right-hand side and calls C<.ACCEPTS($_)> on it. The semantics are left
17841784
to the type of the right-hand side operand.
17851785

doc/Language/performance.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
=TITLE Performance
44
5-
=SUBTITLE Measuring and improving run-time or compile-time performance
5+
=SUBTITLE Measuring and improving runtime or compile-time performance
66
77
This page is about L<computer performance|https://en.wikipedia.org/wiki/Computer_performance> in the context
88
of Perl 6.
@@ -170,10 +170,10 @@ more efficient for that case.
170170
171171
Most L<C<where> clauses|/type/Signature#Type_Constraints> – and thus most
172172
L<subsets|https://design.perl6.org/S12.html#Types_and_Subtypes> – force dynamic
173-
(run-time) type checking and call resolution for any call it I<might> match.
173+
(runtime) type checking and call resolution for any call it I<might> match.
174174
This is slower, or at least later, than compile-time.
175175
176-
Method calls are generally resolved as late as possible (dynamically at run-time),
176+
Method calls are generally resolved as late as possible (dynamically at runtime),
177177
whereas sub calls are generally resolved statically at compile-time.
178178
179179
=head2 Choose better algorithms

doc/Language/phasers.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ COMPOSE {...} # when a role is composed into a class
4747
CLOSE {...} # appears in a supply block, called when the supply is closed
4848
=end code
4949
50-
Phasers marked with a C<*> have a run-time value, and if evaluated earlier than
50+
Phasers marked with a C<*> have a runtime value, and if evaluated earlier than
5151
their surrounding expression, they simply save their result for use in the
5252
expression later when the rest of the expression is evaluated:
5353
@@ -72,7 +72,7 @@ but run the statements as a whole at the indicated time:
7272
ENTER our $random = rand;
7373
7474
(Note, however, that the value of a variable calculated at compile time may not
75-
persist under run-time cloning of any surrounding closure.)
75+
persist under runtime cloning of any surrounding closure.)
7676
7777
Most of the non-value-producing phasers may also be so used:
7878

doc/Language/regexes.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ Zero-Width Assertions can help you implement your own anchor.
819819
820820
A zero-width assertion turns another regex into an anchor, making
821821
them consume no characters of the input string. There are two variants:
822-
look-ahead and look-behind assertions.
822+
lookahead and lookbehind assertions.
823823
824824
Technically, anchors are also zero-width assertions, and they can look
825825
both ahead and behind.
@@ -861,7 +861,7 @@ For instance, the following lines all produce the very same result:
861861
my @ending_letters = <d e f>;
862862
say 'abcdefg' ~~ rx{ abc <?@ending_letters> }; # OUTPUT: 「abc」
863863
864-
A practical use of look-ahead assertions is in substitutions, where
864+
A practical use of lookahead assertions is in substitutions, where
865865
you only want to substitute regex matches that are in a certain
866866
context. For example, you might want to substitute only numbers
867867
that are followed by a unit (like I<kg>), but not other numbers:
@@ -871,7 +871,7 @@ that are followed by a unit (like I<kg>), but not other numbers:
871871
s:g[\d+ <?before \s* @units>] = 5 * $/;
872872
say $_; # OUTPUT: Please buy 2 packs of sugar, 5 kg each
873873
874-
Since the look-ahead is not part of the match object, the unit
874+
Since the lookahead is not part of the match object, the unit
875875
is not substituted.
876876
877877
=head2 X<Lookbehind assertions|regex,after>
@@ -901,7 +901,7 @@ would be matched by
901901
902902
say "fotbar" ~~ / <!after foo> bar /; # OUTPUT: «bar␤»
903903
904-
These are, as in the case of look-ahead, zero-width assertions which do not I<consume> characters, like here:
904+
These are, as in the case of lookahead, zero-width assertions which do not I<consume> characters, like here:
905905
906906
say "atfoobar" ~~ / (.**3) .**2 <?after foo> bar /;
907907
# OUTPUT: «「atfoobar」␤ 0 => 「atf」␤»

doc/Language/subscripts.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ example, L<Match> objects support both (each accessing a different set of
112112
data). Also, to make list processing more convenient, class L<Any> provides a
113113
fallback implementation for positional subscripts which simply treats the
114114
invocant as a list of one element. (But there's no such fallback for
115-
associative subscripts, so they throw a run-time error when applied to an
115+
associative subscripts, so they throw a runtime error when applied to an
116116
object that does not implement support for them.)
117117
118118
=begin code

doc/Language/syntax.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ See the L<Signatures|/type/Signature> documentation for more about signatures.
604604
my Int $x = 7; # declare the type
605605
my Int:D $x = 7; # specify that the value must be defined (not undef)
606606
my Int $x where { $_ > 3 } = 7; # constrain the value based on a function
607-
my Int $x where * > 3 = 7; # same constraint, but using L<Whatever> short-hand
607+
my Int $x where * > 3 = 7; # same constraint, but using L<Whatever> shorthand
608608
609609
See L<Variable Declarators and
610610
Scope|/language/variables#Variable_Declarators_and_Scope>

doc/Language/variables.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ X<|$?FILE>X<|$?LINE>X<|::?CLASS>X<|&?ROUTINE>X<|&?BLOCK>X<|%?LANG>X<|%?RESOURCES
10561056
10571057
All compile time variables have a question mark as part of the twigil.
10581058
Being I<compile time> they cannot
1059-
be changed at run-time, however they are valuable in order to introspect
1059+
be changed at runtime, however they are valuable in order to introspect
10601060
the program.
10611061
The most common compile time variables are the following:
10621062

doc/Type/Variable.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Variables have a wealth of compile-time information, but at run time, accesses
1010
to a variable usually act on the value stored inside the variable, not the
11-
variable itself. The run-time class of a variable is L<Scalar>.
11+
variable itself. The runtime class of a variable is L<Scalar>.
1212
1313
Class C<Variable> holds the compile-time information that traits can use to
1414
introspect and manipulate variables.

0 commit comments

Comments
 (0)