1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-23 07:06:19 +02:00

6 Commits

Author SHA1 Message Date
Martin Geisler
4c78c3be6d
Simplify with local variable (#2423)
This reduces the vertical space needed.
2024-10-16 11:28:30 +02:00
Ivan Sakharovskii
6c0204fd50
Added tests and implementation for I32(float) for Exercise: Protobuf Parsing (#2302)
Update for Exercise: Protobuf Parsing

* Include tests in the solution
* Remove implementatinon of wire type I32, but leave it as a "more-to-explore" extension
2024-08-28 13:22:59 -04:00
Jason Lin
92c890f287
Update lifetimes/exercise.rs (#2326)
Rename `as_string()` to `as_str()`. We are returning a `&str` not
`String`. The latter name is also more idomatic and widely used.
2024-08-28 06:52:45 +00:00
Jason Lin
5d69d8c87b
Remove lifetime trait bound on ProtoMessage (#2187)
The lifetime trait bound is unncessary, and the code compiles without
it.
2024-07-09 21:20:00 +00:00
Nicole L
b69b68f5e2
Remove error handling from protobuf exercise (#2109) 2024-06-07 09:13:11 -07:00
Nicole L
7cd25c0262
Move slices and strings to references section (#1898)
This PR moves the slides for slices and strings into the day 1 section
on references. This seems like the more natural place to introduce
slices since slices are a type of reference. It then also made sense to
me to follow that with the introduction of `&str` and `String`, since
students now have the context to understand what a "string slice" is. I
also removed the strings slide from the types and values section since
it didn't make sense to cover the same topic twice in the same day. I
tested this new organization in my class on Wednesday and it didn't
cause day 1 to take too long.
2024-03-14 16:21:15 -04:00