diff --git a/modules/conop/doc/compoundlib.rst b/modules/conop/doc/compoundlib.rst
index 0380f14ad0a585a5d338d87357a8901a7b918e12..48ee192df54ff33cbd826273a2375e42beeafbdd 100644
--- a/modules/conop/doc/compoundlib.rst
+++ b/modules/conop/doc/compoundlib.rst
@@ -161,7 +161,7 @@ In this example we will translate the three-letter-codes given in the SEQRES rec
   seqres='ALA GLY MSE VAL PHE'
   sequence=''
   for tlc in seqres.split():
-    compound=compound_lib.FindCompound(compound_lib)
+    compound=compound_lib.FindCompound(tlc)
     if compound:
        sequence+=compound.one_letter_code
   print sequence # prints 'AGMVF'