Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
(cherry picked from commit 05a1a10c41eac21a6487876c2d2d5baf5ab65667)
  • Loading branch information
tbm authored and LilSpazJoekp committed Jan 25, 2021
1 parent f2ce6db commit cee2bdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions AUTHORS.rst
Expand Up @@ -16,6 +16,7 @@ Documentation Contributors
- Marc `@PerhapsSomeone <https://github.com/PerhapsSomeone>`_
- Richard Hoekstra `@RichardHoekstra <https://github.com/RichardHoekstra>`_
- Pim Tholhuijsen `@mandjevant <https://github.com/mandjevant>`_
- Martin Michlmayr `@tbm <https://github.com/tbm>`_

<!-- - Add "Name <email (optional)> and github profile link" above this line. -->

Expand Down
6 changes: 3 additions & 3 deletions docs/tutorials/reply_bot.rst
Expand Up @@ -127,7 +127,7 @@ phrases:
# do something with a matched submission
break
String comparison in python is case sensitive. As a result, we only compare a
String comparison in Python is case sensitive. As a result, we only compare a
normalized version of the title to our lower-case question phrases. In this
case, "normalized" means only lower-case.

Expand All @@ -144,12 +144,12 @@ those submissions with an appropriate lmgtfy_ link.

First we will need to construct a working lmgtfy_ link. In essence we want to
pass the entire submission title to lmgtfy_. However, there are certain
characters that are not permitted in URLs or have other . For instance, the
characters that are not permitted in URLs or have other meanings. For instance, the
space character, " ", is not permitted, and the question mark, "?", has a
special meaning. Thus we will transform those into their URL-safe
representation so that a question like "What is the capital of Canada?" is
transformed into the link
``https://lmgtfy.com/?q=What+is+the+capital+of+Canada%3F)``.
``https://lmgtfy.com/?q=What+is+the+capital+of+Canada%3F``.

There are a number of ways we could accomplish this task. For starters we could
write a function to replace spaces with pluses, ``+``, and question marks with
Expand Down

0 comments on commit cee2bdc

Please sign in to comment.