Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6bd9f8c

Browse files
author
Solomon Hykes
committed
Fixed typos in a code example in the README
1 parent 75f8fa4 commit 6bd9f8c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,17 @@ Here's how to expose an object of your choice as a zeroservice::
152152
class Cooler:
153153
""" Various convenience methods to make things cooler. """
154154

155-
def add_man(self, sentence):
156-
""" End a sentence with ", man!" to make it sound cooler, and return the result. """
157-
return sentence + ", man!"
158-
159-
def add_42(self, n):
160-
""" Add 42 to an integer argument to make it cooler, and return the result. """
161-
return n + 42
162-
163-
def boat(self, sentence):
164-
""" Replace a sentence with "I'm on a boat!", and return that, because it's cooler. """
165-
return "I'm on a boat!"
155+
def add_man(self, sentence):
156+
""" End a sentence with ", man!" to make it sound cooler, and return the result. """
157+
return sentence + ", man!"
158+
159+
def add_42(self, n):
160+
""" Add 42 to an integer argument to make it cooler, and return the result. """
161+
return n + 42
162+
163+
def boat(self, sentence):
164+
""" Replace a sentence with "I'm on a boat!", and return that, because it's cooler. """
165+
return "I'm on a boat!"
166166
167167
import zerorpc
168168
@@ -178,9 +178,9 @@ Now, in another terminal, let's try connecting to our awesome zeroservice::
178178

179179
$ zerorpc -j tcp://:4242 add_42 1
180180
43
181-
$ zerorpc tcp://:4242 add_man "I own a mint-condition Wolkswagen Golf"
181+
$ zerorpc tcp://:4242 add_man 'I own a mint-condition Wolkswagen Golf'
182182
"I own a mint-condition Wolkswagen Gold, man!"
183-
$ zerorpc tcp://:4242 boat "I own a mint-condition Wolkswagen Gold, man!"
183+
$ zerorpc tcp://:4242 boat 'I own a mint-condition Wolkswagen Gold, man!'
184184
"I'm on a boat!"
185185

186186

0 commit comments

Comments
 (0)