Skip to content

Commit

Permalink
fix: fix typo; change rust to cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
abmfy committed Jul 31, 2023
1 parent 9e86c92 commit bf65b63
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions slides/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -649,11 +649,14 @@ docker run --rm hello:hello

<v-click>

- `main.rs`:
- `main.cpp`:

```rust
fn main() {
println!("Hello, world!");
```cpp
#include <iostream>
using std::cout, std::endl;

int main() {
cout << "Hello, world!" << endl;
}
```

Expand All @@ -664,11 +667,11 @@ fn main() {
- `Dockerfile`:

```dockerfile
FROM rust
FROM gcc

COPY main.rs .
COPY main.cpp .

RUN rustc main.rs
RUN g++ main.cpp -o main

CMD ["./main"]
```
Expand Down Expand Up @@ -1129,7 +1132,7 @@ docker exec -it db mysql -p
- 创建数据库:

```sql
CREATE DATABASE django;
CREATE DATABASE leaderboard;
```

</v-clicks>
Expand Down

0 comments on commit bf65b63

Please sign in to comment.