This commit is contained in:
Janggun Lee
2024-09-02 09:23:41 +09:00
parent e9f2a5c5fc
commit aa743f634e
3 changed files with 24 additions and 4 deletions

20
.github/ISSUE_TEMPLATE/ASSIGNMENT.md vendored Normal file
View File

@@ -0,0 +1,20 @@
---
name: Homework
about: Create a homework
title: "[Assignment TODO] TODO (due: TODO)"
labels: assignment
assignees: ''
---
DESCRIPTION.
- Read the description [here](https://github.com/kaist-cp/cs220/blob/main/src/assignments/assignmentX.rs). You're going to fill out the `todo!()`s.
- You can grade your solution yourself by running `./scripts/grade-X.sh`.
- Submit your code [here](https://gg.kaist.ac.kr/assignment/GGX/).
- **IMPORTANT**: only the last submission counts. Please make sure the last submission succeeds.
- **IMPORTANT**: don't fork this repository. It'll be public!

View File

@@ -4,9 +4,9 @@ title: '[Assignment #] (SUMMARIZE YOUR QUESTION AS CLEARLY AS POSSIBLE)'
labels:
- question
assignees:
- woojinnn
- jirheee
- AnHaechan
- Lee-Janggun
- kingdoctor
- Jaewookim08
body:
- type: markdown
attributes:

View File

@@ -14,7 +14,7 @@ enum Yielded<T> {
///
/// Reference:
/// - [Python generator](https://python-reference.readthedocs.io/en/latest/docs/generator/)
#[allow(missing_debug_implementations)]
#[derive(Debug)]
pub struct Generator<T, S> {
state: S,
f: fn(&mut S) -> Yielded<T>,