Skip to content

Commit

Permalink
fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLangmead committed Aug 23, 2015
1 parent 78d874b commit 40f1bf9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions 4.01_ShortestCommonSuperstring.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
" return 0. \"\"\"\n",
" start = 0 # start all the way at the left\n",
" while True:\n",
" start = a.find(b[:min_length], start) # look for b's suffx in a\n",
" start = a.find(b[:min_length], start) # look for b's prefix in a\n",
" if start == -1: # no more occurrences to right\n",
" return 0\n",
" # found occurrence; check for full suffix/prefix match\n",
Expand Down Expand Up @@ -73,21 +73,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 2",
"language": "python",
"name": "python3"
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.4.3"
"pygments_lexer": "ipython2",
"version": "2.7.10"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 40f1bf9

Please sign in to comment.