From 28fe986ae328e7ac832ce6999869eea3ca417be0 Mon Sep 17 00:00:00 2001 From: PankajChaudhary5 Date: Fri, 27 Mar 2020 09:53:16 +0530 Subject: [PATCH] fix suggested changes --- src/librustc_error_codes/error_codes/E0703.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/librustc_error_codes/error_codes/E0703.md b/src/librustc_error_codes/error_codes/E0703.md index 2f9d745261c4..b21416b36444 100644 --- a/src/librustc_error_codes/error_codes/E0703.md +++ b/src/librustc_error_codes/error_codes/E0703.md @@ -1,18 +1,19 @@ -Invalid ABI(Application Binary Interface) used in the code. +Invalid ABI (Application Binary Interface) used in the code. Erroneous code example: ```compile_fail,E0703 -extern "invalid" fn foo() {} //~ ERROR +extern "invalid" fn foo() {} // error! -fn main() { } +# fn main() {} ``` + At present there the few predefined ABI's (like Rust, C, system, etc.) which we can use in our Rust code. Please verify the ABI from the given ABI. For example you can replace the given ABI from 'Rust'. ``` -extern "Rust" fn foo() {} //~ OK! +extern "Rust" fn foo() {} // ok! -fn main() { } +# fn main() { } ```