Skip to content

Commit

Permalink
tweak: make it Hi instead of Hello
Browse files Browse the repository at this point in the history
(just so that it goes "Hi, Bob." to reference the show For All Mankind.)
  • Loading branch information
gthb committed Sep 24, 2021
1 parent 3828aa0 commit a6fe243
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hello-wasm/Cargo.toml → hi-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "hello-wasm"
name = "hi-wasm"
version = "0.1.0"
authors = ["Gunnlaugur Þór Briem <[email protected]>"]
edition = "2018"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hello-wasm/src/lib.rs → hi-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;

#[wasm_bindgen]
pub fn greeting(name: &str) -> String {
format!("Hello, {}", name)
format!("Hi {}.", name)
}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"build-wasm": "wasm-pack build hello-wasm ; jq '. + {type: \"module\", main: .module} | del(.module)' hello-wasm/pkg/package.json | sponge hello-wasm/pkg/package.json",
"build-wasm": "wasm-pack build hi-wasm ; jq '. + {type: \"module\", main: .module} | del(.module)' hi-wasm/pkg/package.json | sponge hi-wasm/pkg/package.json",
"dev": "next dev",
"build": "next build",
"start": "next start",
Expand Down
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css'
import { greeting } from 'hello-wasm';
import { greeting } from 'hi-wasm';

export default function Home() {
return (
Expand Down

0 comments on commit a6fe243

Please sign in to comment.