Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Feb 19, 2014
1 parent 23144aa commit d8b5773
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reference/plugin/adapter/index.md
Expand Up @@ -158,14 +158,14 @@ module FooPlugin
input_message.pattern = ["type", :equal, "my-search"]

def adapt_input(input_message)
p input_message.type
p input_message.command
# => "my-search"
# This message will be handled by a plugin
# for the custom "my-search" command.

input_message.type = "search"
input_message.command = "search"

p input_message.type
p input_message.command
# => "search"
# The messge type (command) is changed.
# This message will be handled by the "search" plugin,
Expand Down Expand Up @@ -215,7 +215,7 @@ module FooPlugin
query_string = input_message["body"]["query"]

# Construct internal search request for the "search" command.
input_message.type = "search"
input_message.command = "search"
input_message.body = {
"queries" => {
"source" => "Store",
Expand Down

0 comments on commit d8b5773

Please sign in to comment.