about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-01-20 13:59:35 -0800
committerEsteban Küber <esteban@kuber.com.ar>2019-01-20 13:59:35 -0800
commite387597a8f789ab6e37e6ce1bf67c8c45d4827c3 (patch)
treeec115e95fd7b0b0e722e8c4d86186bb8f21e2ddb /src/libsyntax
parentacbda76f23b8945fd8f45332352269044ecbf2ca (diff)
downloadrust-e387597a8f789ab6e37e6ce1bf67c8c45d4827c3.tar.gz
rust-e387597a8f789ab6e37e6ce1bf67c8c45d4827c3.zip
Reword message for incorrect float literal
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 43a263b8a6b..fe6fa5e97d7 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2002,10 +2002,10 @@ impl<'a> Parser<'a> {
                     self.bump();
                     let sp = lo.to(self.prev_span);
                     let mut err = self.diagnostic()
-                        .struct_span_err(sp, "numeric float literals must have a significant");
+                        .struct_span_err(sp, "float literals must have an integer part");
                     err.span_suggestion_with_applicability(
                         sp,
-                        "numeric float literals must have a significant",
+                        "must have an integer part",
                         format!("0.{}", val),
                         Applicability::MachineApplicable,
                     );