aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-05-11 19:44:43 -0600
committerTom Tromey <tom@tromey.com>2017-05-12 08:52:55 -0600
commit256afbc259c1e22fafba601a27cf3c8d7bdde417 (patch)
treeea80bf00ccbffd2239eb36e8269235ed5859e963 /gdb/rust-lang.c
parentbe3f1006743f04f0b133de7fa8085a3e4c49b193 (diff)
downloadgdb-256afbc259c1e22fafba601a27cf3c8d7bdde417.zip
gdb-256afbc259c1e22fafba601a27cf3c8d7bdde417.tar.gz
gdb-256afbc259c1e22fafba601a27cf3c8d7bdde417.tar.bz2
Replace "return" with "break"
This replaces a "return" with a "break" in rust_print_subexp, for consistency. ChangeLog 2017-05-12 Tom Tromey <tom@tromey.com> * rust-lang.c (rust_print_subexp): Replace "return" with "break".
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r--gdb/rust-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c
index fe8a58c..dc48ff9 100644
--- a/gdb/rust-lang.c
+++ b/gdb/rust-lang.c
@@ -2021,7 +2021,7 @@ rust_print_subexp (struct expression *exp, int *pos, struct ui_file *stream,
print_subexp (exp, pos, stream, PREC_SUFFIX);
fprintf_filtered (stream, ".%d", tem);
}
- return;
+ break;
case OP_RUST_ARRAY:
++*pos;