Skip to content

Commit 5a39d5c

Browse files
authored
Fix typos (#89)
Signed-off-by: Sergey Bronnikov <[email protected]>
1 parent f070b68 commit 5a39d5c

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
<!-- Test if trace expressions involving the ShiViz module work correctly. -->
140140
<!-- This test expects TLC to report a liveness violation, which is why -->
141141
<!-- failonerror is off. Instead, ant records TLC's return value in -->
142-
<!-- shiviz.return.value, which is cheked in the conditional below. -->
142+
<!-- shiviz.return.value, which is checked in the conditional below. -->
143143
<java classname="tlc2.TLC" fork="true" failonerror="false" resultproperty="shiviz.return.value">
144144
<!-- Tell Java to use a garbage collector which makes TLC happy. -->
145145
<jvmarg value="-XX:+UseParallelGC"/>

modules/ShiViz.tla

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ INSTANCE Toolbox
2020
\* Host below is different to the action predicate
2121
\* CHOOSE p \in DOMAIN pc : pc[p] # pc'[p]
2222
\* since Host evaluates for states n and n - 1
23-
\* whereas the CHOOSE evalutes for states n and n + 1.
23+
\* whereas the CHOOSE evaluates for states n and n + 1.
2424
\* This difference is most easily observed by looking
2525
\* at off-by-one difference of the initial state.
2626
LOCAL FnHost ==

modules/tlc2/overrides/IOUtils.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public synchronized static Value textSerialize(final Tool tool, final ExprOrOpAr
9999
final TLCState s0, final TLCState s1, final int control, final CostModel cm) {
100100

101101
final String msgInvalidParam = "Serialize error invalid parameters: ";
102-
final String successmsg = "Finish writting to the file with success!";
102+
final String successmsg = "Finish writing to the file with success!";
103103

104104
final RecordValue opts;
105105

@@ -142,7 +142,7 @@ public synchronized static Value textSerialize(final Tool tool, final ExprOrOpAr
142142
return new RecordValue(EXEC_NAMES, new Value[] { IntValue.ValZero, new StringValue(successmsg), new StringValue("") }, false);
143143

144144
} catch(Exception e) {
145-
final StringValue errormsg = new StringValue("Serialize error writting to the file: "+e.toString());
145+
final StringValue errormsg = new StringValue("Serialize error writing to the file: "+e.toString());
146146
return new RecordValue(EXEC_NAMES, new Value[] { IntValue.ValOne, new StringValue(""), errormsg }, false);
147147
}
148148
}
@@ -249,7 +249,7 @@ public static Value ioEnv() throws IOException, InterruptedException {
249249

250250
@TLAPlusOperator(identifier = "IOExec", module = "IOUtils", minLevel = 1, warn = false)
251251
public static Value ioExec(final Value parameter) throws IOException, InterruptedException {
252-
// 1. Check parameters and covert.
252+
// 1. Check parameters and convert.
253253
if (!(parameter instanceof TupleValue)) {
254254
throw new EvalException(EC.TLC_MODULE_ONE_ARGUMENT_ERROR,
255255
new String[] { "IOExec", "sequence", Values.ppr(parameter.toString()) });
@@ -267,7 +267,7 @@ public static Value ioExec(final Value parameter) throws IOException, Interrupte
267267

268268
@TLAPlusOperator(identifier = "IOEnvExec", module = "IOUtils", minLevel = 1, warn = false)
269269
public static Value ioEnvExec(final Value env, final Value parameter) throws IOException, InterruptedException {
270-
// Check env and parameters and covert.
270+
// Check env and parameters and convert.
271271
final RecordValue environment = (RecordValue) env.toRcd();
272272
if (environment == null) {
273273
throw new EvalException(EC.TLC_MODULE_ONE_ARGUMENT_ERROR,
@@ -290,7 +290,7 @@ public static Value ioEnvExec(final Value env, final Value parameter) throws IOE
290290

291291
@TLAPlusOperator(identifier = "IOExecTemplate", module = "IOUtils", minLevel = 1, warn = false)
292292
public static Value ioExecTemplate(final Value commandTemplate, final Value parameter) throws IOException, InterruptedException {
293-
// 1. Check parameters and covert.
293+
// 1. Check parameters and convert.
294294
if (!(commandTemplate instanceof TupleValue)) {
295295
throw new EvalException(EC.TLC_MODULE_ONE_ARGUMENT_ERROR,
296296
new String[] { "IOExecTemplate", "sequence", Values.ppr(commandTemplate.toString()) });
@@ -316,13 +316,13 @@ public static Value ioExecTemplate(final Value commandTemplate, final Value para
316316

317317
@TLAPlusOperator(identifier = "IOEnvExecTemplate", module = "IOUtils", minLevel = 1, warn = false)
318318
public static Value ioEnvExecTemplate(final Value env, final Value commandTemplate, final Value parameter) throws IOException, InterruptedException {
319-
// Check env and parameters and covert.
319+
// Check env and parameters and convert.
320320
final RecordValue environment = (RecordValue) env.toRcd();
321321
if (environment == null) {
322322
throw new EvalException(EC.TLC_MODULE_ONE_ARGUMENT_ERROR,
323323
new String[] { "IOEnvExecTemplate", "record", Values.ppr(env.toString()) });
324324
}
325-
// 1. Check parameters and covert.
325+
// 1. Check parameters and convert.
326326
if (!(commandTemplate instanceof TupleValue)) {
327327
throw new EvalException(EC.TLC_MODULE_ONE_ARGUMENT_ERROR,
328328
new String[] { "IOEnvExecTemplate", "sequence", Values.ppr(commandTemplate.toString()) });

tests/SequencesExtTests.tla

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ ASSUME(ReplaceAllSubSeqs("\t", "%%", "Properly escape the %% char") = "Properly
315315
ASSUME(ReplaceAllSubSeqs("\f", "%%", "Properly escape the %% char") = "Properly escape the \f char")
316316
ASSUME(ReplaceAllSubSeqs("\r", "%%", "Properly escape the %% char") = "Properly escape the \r char")
317317

318-
ASSUME AssertEq(ReplaceAllSubSeqs("replaces", "%pattern%", "This %pattern% the pattern %pattern% multipe times"), "This replaces the pattern replaces multipe times")
318+
ASSUME AssertEq(ReplaceAllSubSeqs("replaces", "%pattern%", "This %pattern% the pattern %pattern% multiple times"), "This replaces the pattern replaces multiple times")
319319
ASSUME AssertEq(ReplaceAllSubSeqs("\\\\", "\\", "Properly escape the \\quotes"), "Properly escape the \\\\quotes")
320320

321321

0 commit comments

Comments
 (0)