summaryrefslogtreecommitdiff
path: root/tutorial
diff options
context:
space:
mode:
authorjose andres <joangoto@gmail.com>2019-05-14 15:13:17 +0200
committerJames E. King III <jking@apache.org>2019-07-01 11:40:42 -0400
commit0124c4d66b4e550c1c56c45e994f842b0638d8a2 (patch)
tree9a1d218d8c9fc8b9f320e1cd3fc004696ee70a35 /tutorial
parentd9019fc5a4a2cec110a9acd9f36a45ee34e3b7f2 (diff)
downloadthrift-0124c4d66b4e550c1c56c45e994f842b0638d8a2.tar.gz
minor change
upgrade to thrift 0.12.0 [THRIFT-4529] - Rust enum variants are now camel-cased instead of uppercased to conform to Rust naming conventions
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/rs/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/rs/README.md b/tutorial/rs/README.md
index 384e9f8bb..a686b9b19 100644
--- a/tutorial/rs/README.md
+++ b/tutorial/rs/README.md
@@ -84,14 +84,14 @@ fn run() -> thrift::Result<()> {
// two-way with some return
let res = client.calculate(
72,
- Work::new(7, 8, Operation::MULTIPLY, None)
+ Work::new(7, 8, Operation::Multiply, None)
)?;
println!("multiplied 7 and 8, got {}", res);
// two-way and returns a Thrift-defined exception
let res = client.calculate(
77,
- Work::new(2, 0, Operation::DIVIDE, None)
+ Work::new(2, 0, Operation::Divide, None)
);
match res {
Ok(v) => panic!("shouldn't have succeeded with result {}", v),