1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-08-06 22:33:08 +02:00

Remove unneeded pub

This commit is contained in:
mo8it
2024-05-22 15:04:12 +02:00
parent d0b843d6c4
commit 3bb71c6b0c
18 changed files with 30 additions and 30 deletions

View File

@ -1,5 +1,5 @@
pub fn bigger(a: i32, b: i32) -> i32 {
// Complete this function to return the bigger number!
fn bigger(a: i32, b: i32) -> i32 {
// TODO: Complete this function to return the bigger number!
// If both numbers are equal, any of them can be returned.
// Do not use:
// - another function call

View File

@ -1,7 +1,7 @@
// Step 1: Make me compile!
// Step 2: Get the bar_for_fuzz and default_to_baz tests passing!
pub fn foo_if_fizz(fizzish: &str) -> &str {
fn foo_if_fizz(fizzish: &str) -> &str {
if fizzish == "fizz" {
"foo"
} else {

View File

@ -1,4 +1,4 @@
pub fn animal_habitat(animal: &str) -> &'static str {
fn animal_habitat(animal: &str) -> &'static str {
let identifier = if animal == "crab" {
1
} else if animal == "gopher" {