From 34f93e0a6ebbbf7aff5c1aa424642765b2b5af16 Mon Sep 17 00:00:00 2001 From: kalmar Date: Thu, 11 May 2017 18:09:55 +0200 Subject: [PATCH] cosmetics --- src/Groups.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Groups.jl b/src/Groups.jl index 9a84622..7636942 100644 --- a/src/Groups.jl +++ b/src/Groups.jl @@ -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])