From 7730b6ed485dc94cf8efe756b1db99ecd921f85b Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Thu, 24 Oct 2019 04:44:02 +0100 Subject: [PATCH] Update swapprog.en.md --- subjects/swapprog.en.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/subjects/swapprog.en.md b/subjects/swapprog.en.md index 5572ffa50..01e2f9252 100644 --- a/subjects/swapprog.en.md +++ b/subjects/swapprog.en.md @@ -1,4 +1,15 @@ -## swap +## swapprog + +##**WARNING! VERY IMPORTANT!** + +For this exercise a function will be tested **with the exam own main**. However the student **still needs** to submit a structured program: + +This means that: + +- The package needs to be named `package main`. +- The submitted code needs one declared function main(```func main()```) even if empty. +- The function main declared needs to **also pass** the `Restrictions Checker`(illegal functions tester). It is advised for the student to just empty the function main after its own testings are done. +- Every other rules are obviously the same than for a `program`. ### Instructions @@ -11,7 +22,3 @@ func Swap(a *int, b *int) { } ``` - -### Note - -Remember to submit a main function testing the function \ No newline at end of file