cosmetics

This commit is contained in:
kalmar 2017-05-11 18:09:55 +02:00
parent 038ece45c5
commit 34f93e0a6e
1 changed files with 2 additions and 2 deletions

View File

@ -229,9 +229,9 @@ function findnext(W::GWord, Z::GWord, i::Integer)
end
end
function replace!(W::GWord, index, toreplace::GWord, replacement::GWord; asserts=true)
function replace!(W::GWord, index, toreplace::GWord, replacement::GWord; check=true)
n = length(toreplace.symbols)
if asserts
if check
@assert is_subsymbol(toreplace.symbols[1], W.symbols[index])
@assert W.symbols[index+1:index+n-2] == toreplace.symbols[2:end-1]
@assert is_subsymbol(toreplace.symbols[end], W.symbols[index+n-1])