about summary refs log tree commit diff
path: root/src/libsyntax/codemap.rs
diff options
context:
space:
mode:
authorBrandon Waskiewicz <brandon.waskiewicz@gmail.com>2014-04-17 16:59:58 -0400
committerBrandon Waskiewicz <brandon.waskiewicz@gmail.com>2014-04-17 16:59:58 -0400
commit58ae1e7c625491e9eceebdc9120ff009361106fa (patch)
tree6e8e5748d802a1f971ec9dc04873ebbc124bd975 /src/libsyntax/codemap.rs
parentff0b0d5ceeb94fad1d043a5bd2eb631f1f47caff (diff)
downloadrust-58ae1e7c625491e9eceebdc9120ff009361106fa.tar.gz
rust-58ae1e7c625491e9eceebdc9120ff009361106fa.zip
Remove rule that is confusing
The original text stated that one should only return a unique or managed pointer if you were given one in the first place. This makes it sound as if the function *should* return a unique pointer if it were given a unique pointer. The rest of the section goes on to describe why this is bad, and the example of bad code does exactly what the rule just said to do.

I reworded the original rule into a reference to the more concise rule mentioned at the bottom of the section, which helps add emphasis (a la 'it bears repeating').
Diffstat (limited to 'src/libsyntax/codemap.rs')
0 files changed, 0 insertions, 0 deletions