Skip to content

Commit

Permalink
str skriveleif
Browse files Browse the repository at this point in the history
  • Loading branch information
datagutt committed Jan 26, 2025
1 parent 1a9fa8b commit dfd5c44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion korrosjon_compilogenese_proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fn replace_ident(ident: Ident) -> Option<TokenTree> {
"TokenStrøm" => "TokenStream",
"TokenTre" => "TokenTree",
"til_streng" => "to_string",
"som_en_streng" => "as_str",
"som_en_str" => "as_str",
"omfang" => "span",
"Vektor" => "Vec",
"strøm" => "stream",
Expand Down
2 changes: 1 addition & 1 deletion korrosjon_proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ korrosjon_compilogenese::korrosjon! {
funksjon erstatt_identifikator(identifikator: Identifikator) -> Kanskje<TokenTre> {
la strenge_identifikator = identifikator.til_streng();

la ny_streng = sammenlign strenge_identifikator.som_en_streng() {
la ny_streng = sammenlign strenge_identifikator.som_en_str() {
"Prob" => "Err",
"Bra" => "Ok",
"Streng" => "String",
Expand Down

0 comments on commit dfd5c44

Please sign in to comment.