-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turn exercise 009 into practice #2177 #2229
Conversation
Please include a newline at the end of all the files. |
Please review now . @divyankachaudhari |
@Kxrishx03 I'm just an outreachy applicant as well 😅 I was just trying to help you with the experience I got with my PRs. |
practice/009/work/test/dune
Outdated
@@ -0,0 +1,2 @@ | |||
(include_subdirs no) | |||
(test (name run) (libraries ounit2 ex)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add newline at end of the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more here
practice/009/dune-project
Outdated
@@ -0,0 +1 @@ | |||
(lang dune 3.7) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add newline at end of the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, newline here too
practice/009/answer/impl.ml
Outdated
if a = b then aux (a :: current) acc t | ||
else aux [] ((a :: current) :: acc) t in | ||
List.rev (aux [] [] list);; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add newline at end of the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, here it's delete empty line and finish with newline
practice/001/answer/test/run.ml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've still modified the 001
folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do i remove that @divyankachaudhari ? I don't have much experience with github actually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert the change you've made. Here in practice/001/answer/test/run.ml
, you've accidentally added space in a new line, so just remove that. A way to prevent such accidental changes is when you use git add
only specify git add <folder you're modifying>
so you don't add any accidental changes to your commit :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kxrishx03: Just do something like git checkout main -- practice/001/answer/run.ml
and then git commit -a -m 'Do not touch irrelevant file'
Keep in mind that the added value of this internship is learning functional programming and ocaml, git is more a prerequisite ❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cuihtlauac Thanks for the reviews. I will make the requested changes right away!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cuihtlauac I've made changes as you suggested. Please review! Thank you so much!!!
@Kxrishx03 make sure |
practice/001/answer/test/run.ml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kxrishx03: Just do something like git checkout main -- practice/001/answer/run.ml
and then git commit -a -m 'Do not touch irrelevant file'
Keep in mind that the added value of this internship is learning functional programming and ocaml, git is more a prerequisite ❤️
…3/ocaml.org into practice_009_issue_2177
practice/009/answer/impl.ml
Outdated
if a = b then aux (a :: current) acc t | ||
else aux [] ((a :: current) :: acc) t in | ||
List.rev (aux [] [] list);; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, here it's delete empty line and finish with newline
practice/009/dune-project
Outdated
@@ -0,0 +1 @@ | |||
(lang dune 3.7) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, newline here too
practice/009/work/test/dune
Outdated
@@ -0,0 +1,2 @@ | |||
(include_subdirs no) | |||
(test (name run) (libraries ounit2 ex)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take a look at the end of your files in your folder with hexdump
or something similar. Compare with files from other folders. You have added empty lines, not just a mere newline character at the end of the text
@cuihtlauac I've removed all the extra empty line & added new line. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Kxrishx03
@cuihtlauac Hi! Thanks for guiding me through the task. I would like to keep contributing. Please assign me some tasks. |
Please review & suggest if any corrections needed.