diff options
| author | Barosl Lee <vcs@barosl.com> | 2014-11-14 17:14:44 +0900 |
|---|---|---|
| committer | Barosl Lee <vcs@barosl.com> | 2014-11-15 00:22:21 +0900 |
| commit | 94169353eca74c3683b06cea2609a4350ed36c45 (patch) | |
| tree | ac685b5408394a313c8041a34091b4ba1e5d6aeb /src/rustllvm/RustWrapper.cpp | |
| parent | bb2168c5252adeda1dd35ccf7050df89655233d7 (diff) | |
| download | rust-94169353eca74c3683b06cea2609a4350ed36c45.tar.gz rust-94169353eca74c3683b06cea2609a4350ed36c45.zip | |
Improve examples for syntax::ext::deriving::encodable
The examples in the documentation for syntax::ext::deriving::encodable are outdated, and do not work. To fix this, the following changes are applied: - emit_field() -> emit_struct_field() - read_field() -> read_struct_field() - Use Result to report errors - Add the mut keyword to Encoder/Decoder - Prefer Encodable::encode() to emit_uint
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
