Skip to content

Commit 175349e

Browse files
authored
Merge pull request #1681 from crStiv/typo
fix: multiple typos of different importance
2 parents c339e31 + e88254f commit 175349e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

BMR/Party.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "Tools/Worker.h"
2222

2323
#define SERVER_ID (0)
24-
#define INPUT_KEYS_MSG_TYPE_SIZE (16) // so memory will by alligned
24+
#define INPUT_KEYS_MSG_TYPE_SIZE (16) // so memory will by aligned
2525

2626
#ifndef N_EVAL_THREADS
2727
// Default Intel desktop processor has 8 half cores.

BMR/network/Server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void Server::_listen_to_client(int id){
122122
// printf("Server:: received %d: \n", msg_len);
123123
_updatable->NewMsg(msg, &_clients_addr[id]);
124124
}
125-
printf("stop listenning to %d\n", id);
125+
printf("stop listening to %d\n", id);
126126
}
127127

128128
bool Server::_handle_recv_len(int id, size_t actual_len, size_t expected_len) {

Compiler/GC/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def get_input_from(cls, player, n_bits=None):
499499
res = cls()
500500
inst.inputb(player, n_bits, 0, res)
501501
return res
502-
# compatiblity to sint
502+
# compatibility to sint
503503
get_raw_input_from = get_input_from
504504
@classmethod
505505
def load_dynamic_mem(cls, address):

Compiler/comparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def BitLTC1(u, a, b):
412412
return p, a_bits, d, s, t, c, b, pre_input
413413

414414
def carry(b, a, compute_p=True):
415-
""" Carry propogation:
415+
""" Carry propagation:
416416
return (p,g) = (p_2, g_2)o(p_1, g_1) -> (p_1 & p_2, g_2 | (p_2 & g_1))
417417
"""
418418
if a is None:

Compiler/compilerLib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def error(self, err):
187187
"--prime",
188188
dest="prime",
189189
default=defaults.prime,
190-
help="use bit decomposition with a specifed prime modulus "
190+
help="use bit decomposition with a specified prime modulus "
191191
"for non-linear computation (default: use the masking approach). "
192192
"Don't use this unless you're certain that you need it.",
193193
)
@@ -432,7 +432,7 @@ def build_vars(self):
432432
class dummy:
433433
def __init__(self, *args):
434434
raise CompilerError(self.error)
435-
dummy.error = i + " not availabe with binary circuits"
435+
dummy.error = i + " not available with binary circuits"
436436
if i in ("cint", "cfix"):
437437
dummy.error += ". See https://mp-spdz.readthedocs.io/en/" \
438438
"latest/Compiler.html#Compiler.types." + i
@@ -565,7 +565,7 @@ def compile_func(self):
565565
if not (hasattr(self, "compile_name") and hasattr(self, "compile_func")):
566566
raise CompilerError(
567567
"No function to compile. "
568-
"Did you decorate a function with @register_fuction(name)?"
568+
"Did you decorate a function with @register_function(name)?"
569569
)
570570
self.prep_compile(self.compile_name)
571571
print(

0 commit comments

Comments
 (0)